namespaced(namespace)
A higher-order reducer that filters out actions that do not match the provided namespace.
Arguments
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'
import reducer from 'somewhere'
const namespacedReducer = namespaced('subApp')(reducer)