[VueQuery] - Detecting local query loading status after query key changes #5651
-
So, when my components mount, the I see that the If I use the Is this how this package was designed or is there a bug in the Vue implementation? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Could you link a codesandox reproducting your issue? If there is no data in the cache for the second |
Beta Was this translation helpful? Give feedback.
-
You are using To achieve what you want you can leverage other flags, like |
Beta Was this translation helpful? Give feedback.
You are using
keepPreviousData
flag which changes the behavior in a way thatisLoading
is no longer changed, cause you have data to show. This is expected behavior.To achieve what you want you can leverage other flags, like
isPreviousData
.Ex. https://stackblitz.com/edit/vue-nes8re?file=src%2FApp.vue