SolidJSS
SolidJS2y ago
14 replies
eponymous

Using Router Action with Solid (not SolidStart)

I'm trying to understand how to use Solid Router actions with Solid (the core library, not Solid Start).

When I submit a form which has an action the browser redirects to https://action/.... So something is going wrong that I don't see.

Here is a test I created in the Solid Playground, adapting the example from the docs: https://playground.solidjs.com/anonymous/09ea99f6-f72a-4f63-8c80-7e86cba1b348.

As you can see when the form is submitted it redirects to a URL which doesn't exist.
Quickly discover what the solid compiler will generate from your JSX template
Was this page helpful?
Using Router Action with Solid (not SolidStart) - SolidJS