query
query copied to clipboard
Angular: support providing TanStack Query and `withDevtools` on lazy loaded routes
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.