2

If not clear all states, the dirty datas may be rendered to the components when a new user logs in, Obviously it's a bug. I find a simple solution that reloads the page when the route jumps to '/#/login' after a click on logout button. Is anyone have a more elegant solution? Thanks.

Jamter
  • 435
  • 5
  • 13
  • I have read that link, but it doesn't work for me. – Jamter Jan 18 '18 at 08:36
  • 1
    Why is it not working ? – Arnaud Christ Jan 18 '18 at 09:01
  • Thank you for reminding me,[How to reset the state of a Redux store?](https://stackoverflow.com/questions/35622588/how-to-reset-the-state-of-a-redux-store) can solve my problem, other mistake make me fail, thanks again! – Jamter Jan 18 '18 at 09:44

0 Answers0