Ability for clientAction
to update data sent to the server action
#14194
Closed
patrickberkeley
started this conversation in
Proposals
Replies: 2 comments
-
If you have a fine-tuned BFF why not just create an API endpoint there and call it from loader? |
Beta Was this translation helpful? Give feedback.
0 replies
-
The use cases I outlined in this issue ended up not requiring using the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
In trying to follow the Backend-for-Frontend pattern (BFF), we have run into a few cases where it is not possible. We have third-party libraries that capture data from the browser to determine if the user is a human or bot (e.g., Cloudflare Turnstile). These cannot be run on the server, but we would like to pass data from their responses to the server
action
to complete the request.Currently
serverAction
can be called from withinclientAction
, but it accepts no arguments and seems the request and request form data cannot be modified before theaction
hook receives the data.This means we need to push all our handling into the
clientAction
since that's the only place that has access to the data that's returned from the third-party responses and breaks the BFF pattern.In keeping with the BFF pattern, it would be great if there was a way to get data from the
clientAction
to the serveraction
.This issue is similar or identical to one that was previously closed for inactivity: #11285
Beta Was this translation helpful? Give feedback.
All reactions