react-scrollable-anchor icon indicating copy to clipboard operation
react-scrollable-anchor copied to clipboard

removeHash triggers no navigation events

Open tiagoroldao opened this issue 7 years ago • 0 comments

Because removeHash uses history.replaceState, no events get triggered, and there is currently no way to react to this url change. Here is an example of where this would break - using react-router-dom and watching hash portion to highlight menu items:

tiagoroldao avatar Oct 01 '17 12:10 tiagoroldao