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
{{ message }}
Repository navigation
Stale form values unless query is listed in .updates() #15787
Suppose you have a form that uses form.fields.as(type, defaultValue) where defaultValue is a property on an object resulting from a query, the form does NOT refresh the rendered values unless the query is explicitly listed in a .updates() call on the client. This applies to both query.refresh and query.set on the server.
Interestingly, not calling .updates on the client and only calling query.refresh on the server does indeed refresh the query, and everything in the UI that depends on it is updated as well, EXCEPT for the form values.
Activity
jdgamble555 commentedon May 2, 2026
I think this is a bigger issue where setting ANY form values are NOT reactive.
Example:
This will ONLY set the value one time.
This is the same for:
I would think they BOTH should compile to something that would update the values with
$effectinternally.I have created two work arounds:
https://dev.to/jdgamble555/sveltekit-remote-functions-workaround-helpers-4k8c#3-set-initial-data
But I'm wondering if there should be a separate issue for this other than:
#14815
J
abdelfattahradwan commentedon May 15, 2026
I updated to Svelte
5.55.7and SvelteKit2.60.1yesterday, but this issue persists.fix: tick before resetting forms (#15805)