You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
and additionally, i've enabled SUPERFORMS_LEGACY: true. When submitting the form, the navigation back to the main page works as expected, but the parent data from the layout-loader is only invalidated like every second time.
If applicable, a MRE
Let me know if you need a MRE, but maybe it's something obvious so just let me know please :)
Description
The form data of the parent layout is not invalidated when saving and redirecting back to the parent. My app is structured like this:
When submitting a superform on
/subpage/+page.svelte
, data is being saved to the database and a redirect back to/+page.svelte
is triggered byMy superforms instance in
/subpage/+page.svelte
is configured like this:and additionally, i've enabled
SUPERFORMS_LEGACY: true
. When submitting the form, the navigation back to the main page works as expected, but the parent data from the layout-loader is only invalidated like every second time.If applicable, a MRE
Let me know if you need a MRE, but maybe it's something obvious so just let me know please :)
Use this template project to create a minimal reproducible example that you can link to here: https://sveltelab.dev/github.com/ciscoheat/superforms-examples/tree/zod (right click to open in a new tab)
The text was updated successfully, but these errors were encountered: