Open jjones315 opened 2 weeks ago
After Testing this more, one of my use cases has a redirect in the load, the issue is still present there, so i think the root issue is the layout not being updated before the child page. the invalidateAll().then(() => goto("..."))
is just masking it by giving the layout enough time to update before actually redirecting.
Describe the bug
when using
goto("...", { invalidateAll: true })
the destination page is navigated to before the parent layout has updated. if the child page relies on anything from the layout to update the page will fail.when i use
invalidateAll().then(() => goto("..."))
everything works as expected. it is unintuitive that these 2 calls do no behave the same.Reproduction
https://github.com/jjones315/invalidate-example
to reproduce to to home page and enter text in textbox, click one of the 2 buttons to try submitting. notice the
Add Item ({ invalidateAll:true })
button will result in the error being logged. the other button works as intended.Logs
System Info
Severity
serious, but I can work around it
Additional Information
No response