nanojsx/nano

[BUG]: browser back and forward buttons doesn't trigger view update

raminjafary opened this issue · 1 comments

Going back or forward in history with browser doesn't trigger update because switch doesn't listen for window popstate event. I think registering and unregistering this event in didMount and didUnmount resolve the issue.

Thanks! I will have a look at your fix.