T
TanStack2y ago
equal-aqua

Save modified response in query cache (React Query v3)

I have a situation where my API response is not normalised. Which means when I fetch the data from api, I want to first filter and normalise the data which should be then stored in cache. Currently I can not have the API response modified. So that is out of question. This is one idea, i dont know if its right or not. - I can disable cache, then modifiy the data in onSettled Callback and set the cache Please let me know what would be right way to achieve this
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?