Invalidate doesn't work while prefetching #6902
Labels
bug
Something isn't working
p2-nice-to-have
SvelteKit cannot be used by a small number of people, quality of life improvements, etc.
prefetch
Milestone
Describe the bug
Calling
invalidate
orinvalidateAll
doesn't behave as expected when a prefetch is happening.load_route
returns early in this case, swallowing theinvalidate
calls.Reproduction
This thread has more info: https://discord.com/channels/457912077277855764/1013838400601731152
Logs
No response
System Info
Severity
annoyance
Additional Information
In general I think we need to have some more stateful logic around invalidation - how they interact with redirects etc.
The text was updated successfully, but these errors were encountered: