How to prevent a no data issue on further query if I unmount a component that is fetching data?
tanstack-query-problem
CodeSandbox is an online editor tailored for web applications.
5 Replies
exotic-emerald•3y ago
What is the issue in the sandbox?
inland-turquoiseOP•3y ago
@julien the state is being
loading forever even if the network request has completedexotic-emerald•3y ago
The logic is inverted on this line:
inland-turquoiseOP•3y ago
@julien omg. sorry about wasting your time.
exotic-emerald•3y ago
No worries 🙂