How to use the redux-devtools-core/lib/utils/importState 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 importPayloadFrom(store, state, instance) {
  try {
    const nextLiftedState = importState(state, instance);
    if (!nextLiftedState) return;
    store.liftedStore.dispatch({ type: 'IMPORT_STATE', ...nextLiftedState });
    relay('STATE', getLiftedState(store, instance.filters), instance);
  } catch (e) {
    relay('ERROR', e.message, instance);