Partial matching with setQueryData
I'm using the following query key in my project like this:
When I try to update the query cache using setQueryData, like this:
It doesn't work as expected. Can we update cached data using a partial query key, or does setQueryData require an exact match? If so, how can I fix this issue?
2 Replies
absent-sapphire•10mo ago
It requires an exact key. setQueriesData is fuzzy and can set data for multiple entries at the same time
fair-roseOP•10mo ago
thanks for the answer sir !!