Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add useTitle option to restore original on unmount #2561

Open
StructuralRealist opened this issue May 23, 2024 · 0 comments
Open

Add useTitle option to restore original on unmount #2561

StructuralRealist opened this issue May 23, 2024 · 0 comments

Comments

@StructuralRealist
Copy link

Is your feature request related to a problem? Please describe.
When implementing useTitle you'd usually want to show a default when a page has not implemented the hook yet.

Describe the solution you'd like
An option restoreOriginalOnUnmount which will revert to the first title value.

Describe alternatives you've considered
restoreOnUnmount does a similar thing, but it reverts to the previous title, not the original one. This is actually not so useful for pages: if you go from About to Profile to Home and the latter doesn't set a title, it will restore to About.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant