UNPKG

redux-behavior-subject

Version:

Create simple store with behavior subject and track changes by demand with [Redux DevTools](https://chrome.google.com/webstore/detail/redux-devtools/lmhkpmbekcpmknklioeibfkpmmfibljd?hl=en) for better performance only when you set to debug (set session s

16 lines (15 loc) 438 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); class ReduxExtension { constructor() { this.state = {}; } get extensionHandle() { return window.__REDUX_DEVTOOLS_EXTENSION__; } sendAction(action, entity, value) { this.state[entity] = value; this.extensionHandle.send(action, this.state); } } exports.reduxExtension = new ReduxExtension();