You’re right that the user should have the option not to implement pub-sub behavior or re-render on route change. I mention in the README on the GitHub repo for this project that, given the react-router package’s firm stance on not implementing pub-sub, I anticipate a non-pub-sub React Hook implementation to be integrated into the react-router package itself. Adding that functionality to this package would make it redundant and unnecessary over the react-router implementation. This package aims to offer a feature not offered elsewhere — that re-render on route change behavior. I empathize with users who do not want that behavior, but I don’t think it would be wise for me to implement that option.

Senior front end engineer /

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store