setQueryData on a list with filters
Hey, i have a list with filters (meaning I can have a lot of different keys that contains a list), I would like to know if it's the recommended way to update a row without reloading the whole liste:
As you can see I'm getting all queries and doing a forEach on them to update my row if it's in the cache
2 Replies
rare-sapphire•8mo ago
you can use
setQueriesData, which accepts a query filter and then calls setQueryData for each found entry. It's pretty much what you are doing manually with findAll + setQueryData, just built-in and it batches updatesdeep-jadeOP•8mo ago
nice thank you !