Solutionunvalidated
Due to availability of `signal` property, we can use it with `fetch API` to achieve this behavior. Tension: previous in-flight requests are not cancelled by `injectQuery`. Outcome: queryFn: ({ signal }) => fetch('https://api.github.com/repos/tanstack/query', { signal: signal, }).then((x) => x.json()),.
3b192efe-4626-4e02-9e4d-b833e0e119e3
Due to availability of signal property, we can use it with fetch API to achieve this behavior. Tension: previous in-flight requests are not cancelled by injectQuery. Outcome: queryFn: ({ signal }) =>
fetch('https://api.github.com/repos/tanstack/query', {
signal: signal,
}).then((x) => x.json()),.