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
I think it would make sense to add this to the documentation, as I tried to mutate it in the first place and wondered why the state was not propagated to another component that derived from page.
Reproduction
I tried to mutate in the first place page.data.user = null; and derived in the other component $derived(page.data.user ? JSON.parse(page.data.user) : null); which was not updating.
Describe the bug
I learned today that $app-state#page is immutable.
I think it would make sense to add this to the documentation, as I tried to mutate it in the first place and wondered why the state was not propagated to another component that derived from page.
Reproduction
I tried to mutate in the first place
page.data.user = null;
and derived in the other component$derived(page.data.user ? JSON.parse(page.data.user) : null);
which was not updating.Logs
No response
System Info
Severity
annoyance
The text was updated successfully, but these errors were encountered: