How to invalidate data within a shallow route modal #12036
Unanswered
IcelandicIcecream
asked this question in
Q&A
Replies: 1 comment 6 replies
-
I think you have to invalidate then call preloadData to fetch the data again for the modal. |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the bug
I'm currently loading a page in a modal using shallow routing. I have a button that invalidates the data within that rendered page. The invalidation works fine within that page itself but when I use it within a modal via pushState, the invalidation doesn't get triggered. How does invalidation work for shallow routing? I'm not too sure how to go about this.
Reproduction
Here is my +page.server.ts for the page being rendered.
Within the page itself, i have a button that invalidates the data:
Logs
No response
System Info
Severity
annoyance
Additional Information
No response
Beta Was this translation helpful? Give feedback.
All reactions