Redux Dev Tools is a browser plugin for Chrome and Firefox.
Originally for Redux, but now available on Memento.
- Install Extension from official store.
- Call
devToolMiddleware
with options and add result tocreateProvider
options.
NOTE: ReduxDevTools allows the user to alter the state of your store directly. This might be a security flaw, so you should only reference this package in Debug builds.
import { devToolMiddleware,createProvider } from "memento.core"
export const provider = createProvider({
stores: [
... // Any Stores
],
middlewares: [
devToolMiddleware({
// Your options
})
],
services: [
... // Any Services
]
})
Args | Type | Default | Description |
---|---|---|---|
name | string | Memento Devtool | Instance name |
maxAge | number | ||
latency | number | 800 | |
trace | boolean | false |