Query invalidation problem
I have an (infinite) query with the key:
["structure", "detail", projectId, parentFolderId, searchParams]
where parentFolderId
can be string or undefined.
One example of such a query key that's stored in the cache is:
I do query invalidation with this exact same key after some mutation succeds, but for some reason this query doesn't get invalidated. Is the problem possibly with the null
value?
(oh also one more question while I'm at it, it appears that the optional parameter, parentFolderId
automatically gets converted to null when I don't pass anything)2 Replies
optimistic-gold•2y ago
you should show your own code so someone can help you
deep-jadeOP•2y ago
Sure
This is the query factory:
This is the mutation that's doing the invalidation:
ProjectStructurePageSearch
is an object type: