Getting TypeScript errors when invoking a server action with the action prop
#53010
Unanswered
adamchipperfield
asked this question in
Help
Replies: 1 comment
-
|
I guess you've already tried type for form as |
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.
-
Summary
I'm trying out the (experimental) Server Actions. When I use the form element's
actionprop to invoke a server action, TypeScript doesn't like it (understandably, because I'm passing a function when it's expecting a string).Does anyone know how I can extend the type of the form to allow functions?
Additional information
No response
Example
No response
Beta Was this translation helpful? Give feedback.
All reactions