What's the best way to pass lazy-computed data to an action? #63410
Unanswered
focux
asked this question in
App Router
Replies: 1 comment 2 replies
-
Hi @focux Sample code below :
By this way, you can pass lazy-computed data to an action. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm building a form with an editor and as you might know, controlled editors don't perform well, so you need to get the editor value at the moment the user submits the form. So far this is what I'm doing and everything works but the types, so I'm not sure whether there's a better way with typescript support to do this:
In this specific case,
.bind
doesn't work because you cannot pass a client function to a server function.Beta Was this translation helpful? Give feedback.
All reactions