MCPcopy Create free account
hub / github.com/TanStack/devtools / TanStackDevtoolsPreactInit

Interface TanStackDevtoolsPreactInit

packages/preact-devtools/src/devtools.tsx:88–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86}
87
88export interface TanStackDevtoolsPreactInit {
89 /**
90 * Array of plugins to be used in the devtools.
91 * Each plugin should have a `render` function that returns a Preact element or a function
92 *
93 * Example:
94 * ```jsx
95 * <TanStackDevtools
96 * plugins={[
97 * {
98 * id: "your-plugin-id",
99 * name: "Your Plugin",
100 * render: <CustomPluginComponent />,
101 * }
102 * ]}
103 * />
104 * ```
105 */
106 plugins?: Array<TanStackDevtoolsPreactPlugin>
107 /**
108 * Configuration for the devtools shell. These configuration options are used to set the
109 * initial state of the devtools when it is started for the first time. Afterwards,
110 * the settings are persisted in local storage and changed through the settings panel.
111 */
112 config?: TanStackDevtoolsPreactConfig
113 /**
114 * Configuration for the TanStack Devtools client event bus.
115 */
116 eventBusConfig?: ClientEventBusConfig
117}
118
119// Hands the portal's context to the separate root, so plugins can read the app's providers.
120function ContextProvider(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected