How to use redux-toolbelt-thunk - 2 common examples

To help you get started, we’ve selected a few redux-toolbelt-thunk 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 / actions / Dashboard / DashboardActions.js View on Github external
import { makeThunkAsyncActionCreator } from 'redux-toolbelt-thunk';
import Api from '../../api';

export const getGeneral = makeThunkAsyncActionCreator(
  'FETCH_USER',
  Api.GeneralApi.getGeneral
);

export const getChartData = makeThunkAsyncActionCreator(
  'FETCH_USER',
  Api.ChartApi.getChartData
);
github baoduy / React-MaterialUI-Starter-Kit / src / actions / Dashboard / DashboardActions.js View on Github external
import { makeThunkAsyncActionCreator } from 'redux-toolbelt-thunk';
import Api from '../../api';

export const getGeneral = makeThunkAsyncActionCreator(
  'FETCH_USER',
  Api.GeneralApi.getGeneral
);

export const getChartData = makeThunkAsyncActionCreator(
  'FETCH_USER',
  Api.ChartApi.getChartData
);

redux-toolbelt-thunk

Redux thunk helpers for redux-toolbelt

MIT
Latest version published 1 year ago

Package Health Score

55 / 100
Full package analysis

Popular redux-toolbelt-thunk functions