How to use the redux-toolbelt.makeAsyncReducer function in redux-toolbelt

To help you get started, we’ve selected a few redux-toolbelt 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 baoduy / React-MaterialUI-Starter-Kit / src / views / Dashboard / Reducer.jsx View on Github external
import { makeAsyncReducer } from "redux-toolbelt";
import actions from "./Actions";

const chartsReducer = makeAsyncReducer(actions.getChartData);
const generalReducer = makeAsyncReducer(actions.getGeneral);

export default {
    chartsReducer,
    generalReducer
};
github baoduy / React-MaterialUI-Starter-Kit / src / views / Dashboard / Reducer.jsx View on Github external
import { makeAsyncReducer } from "redux-toolbelt";
import actions from "./Actions";

const chartsReducer = makeAsyncReducer(actions.getChartData);
const generalReducer = makeAsyncReducer(actions.getGeneral);

export default {
    chartsReducer,
    generalReducer
};

redux-toolbelt

Async Actions helpers for redux-toolbelt

MIT
Latest version published 2 years ago

Package Health Score

52 / 100
Full package analysis