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.
There's a wish for large enterprise applications to not add TanStack Query to the main application bundle but only on lazy loaded routes.
provideTanStackQueryand feature providers such aswithDevtoolsshould be usable on lazy loaded routes providers array.As
withDevtoolswas first intended to be used only inapp.config.tsit currently adds new devtools every time it's provided.