Replies: 1 comment
-
I don't remember if I had the same issue - I only found out placeholdeData not working properly because I was playing around with svelte-query, not because I had a problem to solve with it As to why it happens - I would guess it's because query is recreated when you set new placeholderData. Perhaps you could try to set some other option the same way and see if you have the same issue - if yes I bet the problem is because query is recreated. |
Beta Was this translation helpful? Give feedback.
0 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.
Uh oh!
There was an error while loading. Please reload this page.
-
@HugeLetters
I experienced the same error as described in the topic and tried to apply your solution however another problem arose: the query is fetched twice on initial render even though the query key does not change and it only happens when I add
placeholderData: prevData
. Have you had the same problem??Originally posted by @skelawsky in #5913 (comment)
I'm creating a new post because linked one seems to be closed and not visible to the others.
Beta Was this translation helpful? Give feedback.
All reactions