rafgraph / react-router-hash-link

Hash link scroll functionality for React Router
https://react-router-hash-link.rafgraph.dev
MIT License
732 stars 62 forks source link

Conditional disabling of hashlink #91

Open chrisphillers opened 2 years ago

chrisphillers commented 2 years ago

We are having bubbling issues with hashlink as the parent component and there seems to be no way of disabling hashlink. Should hashlink not have a disable prop or better handle an empty string? At the moment an empty string in the "to" prop triggers a re-render.