-
I'm trying to use useQuery placeholderData to avoid flickering content when querying for new content. These queries are made after a debounced input change that acts as part of the query key. The problem I'm facing is the following flow:
Is this by design or a bug? Any ideas if this will be changed or should I make some sort of a workaround? `it('should keep the previous data when placeholderData is set and cache is used', async () => {
})` |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
thanks for the reproduction, this indeed looks like a bug. @ardeora maybe you can look into this? I remember you did some work on keepPreviousData in v5. I think we store |
Beta Was this translation helpful? Give feedback.
thanks for the reproduction, this indeed looks like a bug. @ardeora maybe you can look into this? I remember you did some work on keepPreviousData in v5. I think we store
lastQueryWithDefinedData
and this could be the reason here