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

Popular posts from this blog

javascript - Confirm a form & display message if form is valid with JQuery -

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

ionic framework - Meteor - Error: Failed to execute 'insertBefore' on 'Node' -