stuff
not populated when using goto
to reload page on an __error
page
#4314
Labels
bug
Something isn't working
help wanted
PRs welcomed. The implementation details are unlikely to cause debate
p3-edge-case
SvelteKit cannot be used in an uncommon way
Milestone
Describe the bug
This is a bit of an edge case, but if you:
goto($page.url.toString())
stuff
to its parent layoutOn hitting the reload button, the page's
stuff
will not be returned, though any props will be. Navigating away from and back to the page will populate stuff appropriately.Reproduction
Stackblitz
/page2
is configured to return the following fromload
.Repro steps:
goto($page.url.toString())
. The page will successfully render with the props passed fromload
, butpage2: true
will not be in stuff.page2: true
will be in stuff.Expected behavior:
page2: true
is present instuff
even after reloading an error page withgoto
.Logs
System Info
Severity
annoyance
Additional Information
I ran into this behavior on one of my SvelteKit sites. I'm rendering an
__error
page with a reload button. The page usesstuff
to pass a title to the parent__layout
, but the title is undefined after a reload from the error page.The text was updated successfully, but these errors were encountered: