Is it possible to dispatch action outside React component?
import dispatch from 'react';
...
dispatch(actionCreator())
or:
bindActionCreators(actionCreator, dispatch)();
has no effect.
(FYI, I am trying to invoke action from axios
interceptor - I just have found redux-axios-middleware
, but I would like not to integrate it yet).