DevTools

Adds the prodo developer tools to your application.

Installation

npm install --save @prodo/devtools

Add to your model

// src/model.ts
import devToolsPlugin from "@prodo/devtools";
// ...
export const model = createModel<State>().with(devToolsPlugin);

Config

Items added to the createStore config.

export interface DevToolsConfig {
devtools?: boolean;
}

devtools

boolean that indicates whether or not developer tools are enabled. Defaults to false.

const { Provider } = model.createStore({
devtools: true,
initState: {
/* ... */
},
});