redux-toolkit
redux-toolkit copied to clipboard
Query retries occur after component with useQuery hook is unmounted
Description
Query retries continue retrying even after component with useQuery is unmounted
How to reproduce
- open sandbox link
- open Network tab in dev tools
- find 404 errors
- press
Unmountbutton - see that component is no longer mounted, but retries are still working
Expected Retry attempts should be stopped once component is unmounted