(store, state, instance)
| 126 | } |
| 127 | |
| 128 | function importPayloadFrom(store, state, instance) { |
| 129 | try { |
| 130 | const nextLiftedState = importState(state, instance) |
| 131 | if (!nextLiftedState) return |
| 132 | store.liftedStore.dispatch({ type: 'IMPORT_STATE', ...nextLiftedState }) |
| 133 | relay('STATE', getLiftedState(store, instance.filters), instance) |
| 134 | } catch (e) { |
| 135 | relay('ERROR', e.message, instance) |
| 136 | } |
| 137 | } |
| 138 | |
| 139 | function exportState({ id: instanceId, store, serializeState }) { |
| 140 | const liftedState = store.liftedStore.getState() |
no test coverage detected