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

'hasOwnProperty' in javascript -

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -

How to understand 2 main() functions after using uftrace to profile the C++ program? -