Describe the bug
Based on the documentation, you should be able to use inject within the loadDevtools option in the withDevtools function.
See https://github.com/TanStack/query/blob/main/docs/framework/angular/devtools.md
Now if you do this, you will get an NG0203 error.
Breaking PR: #8817
Your minimal, reproducible example
https://noop.com
Steps to reproduce
- Initialize angular with tanstack query
- Write a simple service with a boolean signal that will determine if the devtool is active
- Try injecting it in the "loadDevtools" option.
Expected behavior
As a developer I expected the devtools not to throw an NG0203 error
How often does this bug happen?
Every time
Screenshots or Videos
No response
Platform
Any browser
Tanstack Query adapter
angular-query
TanStack Query version
v5.68.1
TypeScript version
v5.8.2
Additional context
No response
Describe the bug
Based on the documentation, you should be able to use inject within the
loadDevtoolsoption in thewithDevtoolsfunction.See https://github.com/TanStack/query/blob/main/docs/framework/angular/devtools.md
Now if you do this, you will get an
NG0203error.Breaking PR: #8817
Your minimal, reproducible example
https://noop.com
Steps to reproduce
Expected behavior
As a developer I expected the devtools not to throw an NG0203 error
How often does this bug happen?
Every time
Screenshots or Videos
No response
Platform
Any browser
Tanstack Query adapter
angular-query
TanStack Query version
v5.68.1
TypeScript version
v5.8.2
Additional context
No response