Skip to content

Instantly share code, notes, and snippets.

View mswanson's full-sized avatar

Michael Swanson mswanson

View GitHub Profile
@mswanson
mswanson / configure-store.js
Last active November 9, 2019 01:06
Wiring up Redux-ORM with Redux Saga and Slice Reducers
// called in app root js file
// Classes and functions we need to build the store and initial state
import { createStore, applyMiddleware } from 'redux';
import createSagaMiddleware from 'redux-saga';
import InitialStateBuider from './initial-state-builder';
// Sagas and Reducers
import rootSaga from '../modules/root-saga';
import rootReducer from '../modules/root-reducer';