createAction

Factory function for creating redux-fluent actions.

import { createAction } from 'redux-fluent';

createAction(type, payloadCreator?, metaCreator?);

Arguments

  • string - the action type
  • (rawPayload: any, rawMeta: any, type: string) => Payload - the payload creator
  • (rawPayload: any, rawMeta: any, type: string) => Meta - the meta creator

Returns

(rawPayload, rawMeta) => FluxStandardAction

Usage

createAction('action-type', () => Payload, () => Meta);

results matching ""

    No results matching ""