react-query: is there a callback that get trigger regardless of whether getQuery is cached or not?

后端 未结 0 1090
萌比男神i
萌比男神i 2021-01-28 09:20

I want to do some side effects like setState and update context after the data is fetched. However, the onSuccess will not be executed when the data is in cache. Also useEffect

相关标签:
回答
  • 消灭零回复
提交回复
热议问题