Pattern
Tool-Version Compatibility Break
tool-version-compatibility-break
queryFn: ({ signal }) => — lastValueFrom(
this.#http.get('https://api.github.com/repos/tanstack/query')
),. Outcome: Due to availability of signal property, we can use it with fetch API to achieve this behavior. | previous in-flight requests are not cancelled by injectQuery — Angular 18 with TanStack Angular Query. Outcome: I searched for a possible workaround, but did not find any. | 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()),.