Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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);
}
}