A Redux middleware that ensures the matching action types as will be raised as global actions.
actionsTypes
(arguments): Strings or Patterns to match against dispatched action types.
(Function): The middleware.
import { createStore } from 'redux'
import { applyMiddleware, globalActions } from 'redux-subspace'
import reducer from 'somewhere'
const store = createStore(reducer, applyMiddleware(globalActions('ACTION_TYPE')))
import { createStore } from 'redux'
import { applyMiddleware, globalActions } from 'redux-subspace'
import reducer from 'somewhere'
const store = createStore(reducer, applyMiddleware(globalActions('ACTION_TYPE_1', 'ACTION_TYPE_2')))
import { createStore } from 'redux'
import { applyMiddleware, globalActions } from 'redux-subspace'
import reducer from 'somewhere'
const store = createStore(reducer, applyMiddleware(globalActions(/ACTION_.*/)))