globalAction(action)

A higher-order action that marks the action as a global action, i.e. wont be namespaced when dispatched from subspaces.

Arguments

  1. action (Object): The action to make global.

Returns

(Object): An action that is identical to the original except marked as a global action.

Examples

import { globalAction } from 'redux-subspace'

const action = globalAction({ type: 'MY_ACTION', value: 'example' })

results matching ""

    No results matching ""