Skip to content

Function: connectFateDevtools() ​

connectFateDevtools(client, options?): () => void

Defined in: fate-devtools/src/index.ts:181

Connects a fate client to the devtools panel. Returns a function that disconnects it again and restores the client's original transport.

Connecting the same client more than once is safe; the client stays connected until every returned disposer has been called.

The devtools are intended for development. Guard the call with import.meta.env.DEV (or your bundler's equivalent) to keep them out of production bundles.

Parameters ​

client ​

FateClient<any, any, any>

options? ​

FateDevtoolsOptions = {}

Returns ​

() => void

Released under the MIT License