Not refetching on reactive query key change #296
Unanswered
aakashbashyal21
asked this question in
Questions
Replies: 1 comment 2 replies
-
|
Use these instead: |
Beta Was this translation helpful? Give feedback.
2 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.
-
I have a useCollections composable that takes a reactive Ref for filtering, sorting, and pagination.
The computed query key clearly changes (confirmed via console logs), but the query does not re-run when the parameters update.
Here's the code:
collectionsQueryKeys:
At runtime, I see the console log output confirming the query key is changing, e.g.:
But getProductCollection() never runs again. The query is stuck on the initial fetch.
Why isn’t the query refetching when the key changes reactively? What could i be missing here?
Beta Was this translation helpful? Give feedback.
All reactions