-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Angular: withDevtools option loadDevtools no longer supports dependency injection #8824
Copy link
Copy link
Closed
Description
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
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
Reactions are currently unavailable