12345678910111213141516171819202122 |
- // Create the client-side Redux store.
- // This store's only purpose is to sync with the main store.
- const { createStore, applyMiddleware } = require('redux');
- const {
- forwardToMain,
- getInitialStateRenderer,
- replayActionRenderer
- } = require('electron-redux');
- const thunk = require('redux-thunk').default;
- const initialState = getInitialStateRenderer();
- import rootReducer from '../core/rootReducer';
- const store = createStore(
- rootReducer,
- initialState,
- applyMiddleware(forwardToMain, thunk)
- );
- replayActionRenderer(store);
- module.exports = store;
|