Redirect to another route when `mapHooks` fails <p>I have defined following <code>mapHooks</code>:</p> <pre><code>const mapHooks = { fetch: ({ dispatch, params }) =&gt; dispatch(fetchPost(params.postId)).catch(() =&gt; { console.log('catch'); }), }; </code></pre> <p>Sometimes, post cannot be found and I'd like to redirect user to the another page. When I <code>catch</code> the error I tried to call <code>push('/foo')</code> to redirect to <code>/foo</code> page, but it does nothing (<code>push</code> comes from <code>react-router-redux</code>.</p> <p>How can I redirect user properly ?</p>