How to use the redux-devtools.ActionTypes.JUMP_TO_STATE function in redux-devtools

To help you get started, we’ve selected a few redux-devtools examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github antitoxic / mobx-redux-devtools / src / monitor.js View on Github external
syncMobx(props) {
        if (props.monitorState.mobx.shouldUpdate != ActionTypes.JUMP_TO_STATE) return;

        var {
            computedStates,
            currentStateIndex,
            hydrate,
            observable
        } = props;
        const currentState = computedStates[currentStateIndex].state;
        transaction(() => {
            hydrate(observable, currentState);
            observable.$mobx.fromJS = true;
        })
    }