namespaced(namespace)

A higher-order reducer that filters out actions that do not match the provided namespace and namespaces the commands returned by your reducer.

Arguments

  1. namespace (string): The namespace of the reducer.

Returns

(Function): A function that accepts a reducer and returns reducer that wraps the provided one.

Examples

import { namespaced } from 'redux-subspace-loop'
import reducer from 'somewhere'

const namespacedReducer = namespace('subApp')(reducer)

results matching ""

    No results matching ""