How do you use a form action at the root? #88
Replies: 1 comment
-
|
Hi @StephDietz, thank you for reporting this. As a workaround, you must use a named action/loader. In this example you can see it uses I think your first assumption is fair, the issue is that What do you think of this pattern ? We could implement it in this module, or we could document the workaround. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
The documentation states that the path of the page and action need to match (i.e.
/pages/login.vueand/server/actions/login.ts) how do I use a form action in the root page? I tried naming the filesindex.vueandindex.tsbut this did not work and am struggling to find any documentation on this. Is this a bug, or do I need to do something different in order to use actions in the root page?Beta Was this translation helpful? Give feedback.
All reactions