Form submit with SolidStart
Hello everyone,
i am following the docs from https://docs.solidjs.com/solid-router/reference/data-apis/action for using a formdata action (server) , but I get the following error.
Can anyone point me to the right direction here?
Cheers
action -
Documentation for SolidJS, the signals-powered UI framework

6 Replies
Can your share more of your code - the implementation of the actions as well as the component and form that uses it?
Hey, added the code, its the same as shown in the documentation
useAction
will return the actions as a function which you can use in a eventhandler.
If you want to pass it directly to the form in the attribute action you may just pass the action directly actionApi.register
in your caseWow, thanks for the response, now the error is gone. So does that mean that the Docs are outdated, or did I get sth wrong?
Heres the snippet from the docs:
The concepts section shows more examples how to use them
https://docs.solidjs.com/solid-router/concepts/actions
Actions -
Documentation for SolidJS, the signals-powered UI framework
There the same advice: