React history.push() is updating url but not navigating to it in browser

后端 未结 7 868
误落风尘
误落风尘 2020-12-13 16:50

I\'ve read many things about react-router v4 and the npm history library to this point, but none seems to be helping me.

My code is functioning as expected up to t

7条回答
  •  猫巷女王i
    2020-12-13 17:41

    Please ensure that you are using

    const history = createBrowserHistory({forceRefresh:true});
    

    not

    const history = createBrowserHistory();
    

    I was able to update the page once I added "{forceRefresh:true}"

提交回复
热议问题