solydhq / react-router-title

Dynamic document title component for react-router with sub-route support
MIT License
13 stars 1 forks source link

Update title when dynamic part is changed #6

Open ussserrr opened 3 years ago

ussserrr commented 3 years ago

Once dynamic path resolved it doesn't respond on real data changes. Say we have a page corresponding some project, and project.title property is a part of page title. When user updates the project the page title will not adjust itself for a new name until reload/history manipulation. Some registering/detecting mechanics would be great to implement, for example as in use-react-router-breadcrumbs.

Btw, thank you for such a simple yet useful project! Wonder why it has so little stars, it really saves a lot of time and brain cells :)

sapkra commented 2 years ago

Thank you for your feedback. Your feature request sound good but we currently don't have time to implement it. I would appreciate a PR from anyone who wants to do it.