reactjs - react-router causing reload whenever the history state pops -
i have been stuck in problem long time, need on one. have page has set of questions come 1 1, answer 1 want push in history state if in mobile device press browser go previous question, , when set of questions end want clear history.
the approach trying out pushing @ first time , replacing state afterwards. when press back, react router reloads page.
i using react-router-redux along react router.
window.history.pushstate(stateobj, 'some-title', ''); window.addeventlistener('popstate', this.prev);
Comments
Post a Comment