Failure to fetch /__data.json?x-sveltekit-invalidated
on "rerouted" pages in development
#11625
Labels
bug
Something isn't working
Describe the bug
Following the new reroute hook from #11537, invalidating load function(s) on a "rerouted" page will result in a 404 error for
__data.json?x-sveltekit-invalidated=...
(invokinginvalidate
orinvalidateAll
from$app/navigation
).Please note that this does NOT happen in build output from my test with
preview
script and@sveltejs/adapter-static
.For example, with the following
reroute
setup......, calling
invalidateAll
while on/en
page will cause kit to throw the aforementioned 404...Reproduction
Please follow the steps below:
dev
script,http://localhost:5173/en
,invalidate
button,Logs
System Info
Severity
annoyance
Additional Information
This might be related to some other open issues about
__data.json
The text was updated successfully, but these errors were encountered: