Link Search Menu Expand Document

redux-devtool overview

Integration with Redux DevTool Extension.

Please check the docs fur further information.

Added in v0.5.0


Table of contents


constructors

reduxDevToolDebugger

[UNSAFE] Debug through Redux DevTool Extension

Signature

export declare function reduxDevToolDebugger<Model, Msg>(connection: Connection<Model, Msg>): Debugger<Model, Msg>

Added in v0.5.4

model

Connection (interface)

Defines a Redux DevTool Extension connection object.

Signature

export interface Connection<Model, Msg> {
  subscribe: (listener?: Dispatch<DevToolMsg>) => Unsubscription
  send(action: null, state: LiftedState<Model>): void
  send(action: Msg, state: Model): void
  init: (state: Model) => void
  error: (message: unknown) => void
  unsubscribe: () => void
}

Added in v0.5.0

Extension (interface)

Defines a Redux DevTool Extension object.

Signature

export interface Extension {
  connect: <Model, Msg>() => Connection<Model, Msg>
}

Added in v0.5.0

utils

getConnection

Gets a Redux DevTool Extension connection in case the extension is available

Signature

export declare function getConnection<Model, Msg>(global: Global): IO<Option<Connection<Model, Msg>>>

Added in v0.5.0