@tanstack/angular-query-experimental
Version:
Signals for managing, caching and syncing asynchronous and remote data in Angular
26 lines (25 loc) • 928 B
TypeScript
import { WithDevtools } from './types.js';
/**
* Enables developer tools in Angular development builds.
*
* **Example**
*
* ```ts
* export const appConfig: ApplicationConfig = {
* providers: [
* provideTanStackQuery(new QueryClient(), withDevtools())
* ]
* }
* ```
* The devtools will be rendered in `<body>`.
*
* If you need more control over when devtools are loaded, you can use the `loadDevtools` option.
*
* If you need more control over where devtools are rendered, consider `injectDevtoolsPanel`. This allows rendering devtools inside your own devtools for example.
* @param withDevtoolsFn - A function that returns `DevtoolsOptions`.
* @param options - Additional options for configuring `withDevtools`.
* @returns A set of providers for use with `provideTanStackQuery`.
* @see {@link provideTanStackQuery}
* @see {@link DevtoolsOptions}
*/
export declare const withDevtools: WithDevtools;