query icon indicating copy to clipboard operation
query copied to clipboard

Angular: support providing TanStack Query and `withDevtools` on lazy loaded routes

Open arnoud-dv opened this issue 11 months ago • 0 comments

There's a wish for large enterprise applications to not add TanStack Query to the main application bundle but only on lazy loaded routes.

provideTanStackQuery and feature providers such as withDevtools should be usable on lazy loaded routes providers array.

As withDevtools was first intended to be used only in app.config.ts it currently adds new devtools every time it's provided.

arnoud-dv avatar Feb 26 '25 17:02 arnoud-dv