**Description** Query retries continue retrying even after component with `useQuery` is unmounted **How to reproduce** 1. open [sandbox link](https://codesandbox.io/p/devbox/nice-feistel-xdxxg7?file=%2Fsrc%2FApp.tsx&workspaceId=ws_7kyCL8ZrfjHbYMzKnFSEpf ) 2. open Network tab in dev tools 3. find 404 errors 4. press `Unmount` button 5. see that component is no longer mounted, but retries are still working **Expected** Retry attempts should be stopped once component is unmounted