react router pushState not working
<p>I have a redux action like:</p>

<pre><code>import createHistory from 'history/lib/createBrowserHistory'
import * as loginTypes from '../lib/constants/login'

export function login(){

    return (dispatch, getState) =&gt; {

        var message = "hellooww world"
        dispatch({ message, type: loginTypes.LOGIN })

        createHistory.push('/login')
        createHistory.pushState(null, '/login')
        createHistory.transitionTo('/login')

    }
}
</code></pre>

<p>Here I simply want to redirect my after my action is dispatched but it is not being redirected... What might be the issue here ?? Need help</p>