Dev Tools
July 25, 2022 ยท View on GitHub
Redux Dev Tools is a browser plugin for Chrome and Firefox.
Originally for Redux, but now available on Memento.
To enable integration, follow these steps
- Install Extension from official store.
- Call
devToolMiddlewarewith options and add result tocreateProvideroptions.
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
]
})
Options
| Args | Type | Default | Description |
|---|---|---|---|
| name | string | Memento Devtool | Instance name |
| maxAge | number | ||
| latency | number | 800 | |
| trace | boolean | false |