invalidateAll doesn't reload data from +layout.server.ts
#10819
Answered
by
caidanw
DePasqualeOrg
asked this question in
Q&A
-
|
I'm loading some data on the server in |
Beta Was this translation helpful? Give feedback.
Answered by
caidanw
Oct 4, 2023
Replies: 1 comment 5 replies
-
|
I'm also having the same issue, and your post was the first I found online about this. |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Solution
I think I was able to figure it out, my component looked kinda like this:
From svelte docs:
The issue that I was facing is that when you destructure an object from
datayou don't get the reactivity that's needed to useinvalidate. So what was happening is thatdatawas being updated, but since the component is not being recreated theitemva…