@ez-dux/async
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

@ez-dux/async

  • epics, sagas and thunk extension
import { getSagaExtension, getThunkExtension, getObservableExtension } from "@ez-dux/async";
  • createAsyncActionCreators();
import { createAsyncActionCreators } from "@ez-dux/async";

const asyncActionCreators = createAsyncActionCreators<Result, Payload, Meta, E>(NAMESPACE, 'LOAD_START');
  • createSaga();
import { createSaga } from "@ez-dux/async";

const asyncFunction = async (payload, state, meta): Promise<Result> => { ... };
const saga = createSaga({
	asyncActionCreators,
	asyncFunction,
});
  • createModule();
import { createModule } from "@ez-dux/async";

const NAMESPACE = 'my-module';

const myModule = createModule({
    namespace: NAMESPACE,
    actionName: 'my-action',
    asyncFunction: (payload, meta) => {...},
});

/@ez-dux/async/

    Package Sidebar

    Install

    npm i @ez-dux/async

    Weekly Downloads

    3

    Version

    1.1.0

    License

    MIT

    Unpacked Size

    29.1 kB

    Total Files

    41

    Last publish

    Collaborators

    • guitarwag