How to pass timeout option to useQuery using fetch from context signal in the below code.
2 Replies
fair-rose•14mo ago
TanStack | High Quality Open-Source Software for Web Developers
Headless, type-safe, powerful utilities for complex workflows like Data Management, Data Visualization, Charts, Tables, and UI Components.

fair-rose•13mo ago
To expand on that, you can't, but you can use
cancelQueries if you want to abort a fetch.
If you use a fetching lib like axios/ky which have timeouts built in, RQ will know the promise was rejected and act accordingly. You don't need to do anything special there.