How to use redux-immutable - 10 common examples

To help you get started, we’ve selected a few redux-immutable 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 PBRT / reactogo / client / reducers / reducers.js View on Github external
import { combineReducers } from 'redux-immutable';

// Reducers
import { loginReducer } from './login/login.js';
import { modalsReducer } from './modals/modals.js';
import { viewportReducer } from './viewport/viewport.js';
import { fetchedDataReducer } from './fetched-data/fetched-data.js';
import { toastersReducer } from './toaster/toaster.js';
import { sideMenuReducer } from './side-menu/side-menu.js';
import routeReducer from './route-reducer.js';

const app = combineReducers({
  viewport: viewportReducer,
  routing: routeReducer,
  modals: modalsReducer,
  session: loginReducer,
  toasters: toastersReducer,
  sideMenu: sideMenuReducer,
  fetchedData: fetchedDataReducer,
});

export default app;
github fletcher91 / link-redux / test / utilities.js View on Github external
export const generateStore = lrs => createStore(
  combineReducers({ linkedObjects: linkReducer }),
  applyMiddleware(linkMiddleware(lrs)),
);
github wangtao0101 / resa / src / createResa.ts View on Github external
function combineReducersInner(asyncReducers, state) {
        if (isImmutable(state)) {
            return combineImmutableReducers({
                ...asyncReducers,
            });
        }
        return combineReducers({
            ...asyncReducers,
        });
    }
github mjzhang1993 / react-router4-template / src / ReduxStoreGenerator / generateStore.js View on Github external
function toCombineReducers(reducers: Object) {
  const tempReducers = Object.keys(reducers).reduce((prev, current) => {
    const currentReducer = reducers[current];

    prev[current] = _.isFunction(currentReducer)
      ? currentReducer
      : toCombineReducers(currentReducer);
    return prev;
  }, {});
  return combineReducers(tempReducers);
}
/*
github AhKi / oh-my-desk / app / store / reducers / share / config / index.js View on Github external
import { combineReducers } from 'redux-immutable';
import defaultUserAgent from './defaultUserAgent';
import hotKeySearchWindow from './hotKeySearchWindow';
import language from './language';

const configReducer = combineReducers({
  defaultUserAgent,
  hotKeySearchWindow,
  language,
});

export default configReducer;
github heyrict / cindy-realtime / react-boilerplate / app / reducers.js View on Github external
export default function createReducer(injectedReducers) {
  return combineReducers({
    route: routeReducer,
    language: languageProviderReducer,
    ...initialReducers,
    ...injectedReducers,
  });
}
github edp963 / davinci / webapp / app / reducers.ts View on Github external
export default function createReducer (injectedReducers: ReducersMapObject = {}): Reducer {
  return combineReducers({
    route: routeReducer,
    language: languageProviderReducer,
    report: reportReducer,
    ...injectedReducers
  })
}
github edp963 / davinci / webapp / share / reducers.ts View on Github external
export default function createReducer (injectedReducers: ReducersMapObject = {}): Reducer {
  return combineReducers({
    route: routeReducer,
    language: languageProviderReducer,
    ...injectedReducers
  })
}
github MIC-DKFZ / trixi / trixi / experiment_browser / frontend / app / reducers.js View on Github external
export default function createReducer(injectedReducers) {
  return combineReducers({
    route: routeReducer,
    global: globalReducer,
    ...injectedReducers,
  });
}
github WaftTech / WaftEngine / client / app / reducers.js View on Github external
export default function createReducer(injectedReducers) {
  return combineReducers({
    route: routeReducer,
    language: languageProviderReducer,
    global: globalReducer,
    ...injectedReducers,
  });
}

redux-immutable

redux-immutable is used to create an equivalent function of Redux combineReducers that works with Immutable.js state.

BSD-3-Clause
Latest version published 8 years ago

Package Health Score

53 / 100
Full package analysis

Popular redux-immutable functions