How to use the redux-devtools-core/lib/utils.evalAction function in redux-devtools-core

To help you get started, we’ve selected a few redux-devtools-core 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 jhen0409 / react-native-debugger / app / worker / reduxAPI.js View on Github external
function dispatchRemotely(action, instance) {
  try {
    const { store, actionCreators } = instance;
    const result = evalAction(action, actionCreators);
    store.dispatch(result);
  } catch (e) {
    relay('ERROR', e.message, instance);
  }
}
github zalmoxisus / remote-redux-devtools / src / devTools.js View on Github external
dispatchRemotely(action) {
    try {
      const result = evalAction(action, this.actionCreators);
      this.store.dispatch(result);
    } catch (e) {
      this.relay('ERROR', e.message);
    }
  }