-
Notifications
You must be signed in to change notification settings - Fork 400
Open
Labels
Description
Duplicates
- I have searched the existing issues
Latest version
- I have tested the latest version
Current behavior 😯
When an action returns json, it breaks compatibility with server-side rendering in cases where you have a classic form without javascript.
Expected behavior 🤔
I expect to remain on the same page if my action returns a JSON constructed with the SolidJSRouter method.
Steps to reproduce 🕹
Steps:
- Build a classic form <form action={myAction} method="post"
- Have myAction return
return json({test: true}) - And I am redirected to a page like http://localhost:3000/_server?id=src_app_routes_unauthenticated...
Context 🔦
I simply want it to be fully compatible without JavaScript.