withRouterAction
Last updated
Last updated
for dispatching an action with the data from the router context, when the route is matched and corresponding component is about to mount.
The action will receive the and the from
withRouterAction(action)
is useful, when you want to run side-effects in the Epics right after Component being loaded.
action
(string
): Redux to dispatch.
(Function
): A function that enables us to dispatch an when Component is mounted.
./src/containers/About