react-query: useQuery onSuccess not called when data is fetched from cache and useEffect doesn't trigger when data changes

前端 未结 0 1546
失恋的感觉
失恋的感觉 2021-01-28 06:17

I\'m doing some side effects like setState in onSuccess. But I noticed that if the data is from cache, onSuccess callback doesn\'t get executed and my app crashed. Then I tried

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