-
Notifications
You must be signed in to change notification settings - Fork 99
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
Pr/remove hooks modifying head #1004
Conversation
Removing this hook since it has been decided that hooks which modify contents of the head element should not be included in this library. BREAKING CHANGE: useDocumentTitle has been removed. re #386
Codecov Report
@@ Coverage Diff @@
## master #1004 +/- ##
==========================================
- Coverage 99.61% 99.60% -0.01%
==========================================
Files 61 60 -1
Lines 1039 1025 -14
Branches 165 161 -4
==========================================
- Hits 1035 1021 -14
Misses 2 2
Partials 2 2
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
LGTM, but! we have to fix useStorageValue first |
One approving review and the CI is passing (coverage dropped merely because there's now fewer lines of code to test). Off to production we go! |
🎉 This PR is included in version 18.0.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
What is the problem?
In #386 it was decided that hooks modifying the contents of the
<head>
element should not be implemented and existing such hooks should be removed.What changes does this PR make to fix the problem?
useDocumentTitle
(are there any other that should be removed?)useDocumentTitle
anduseFavicon
with information about this decision and suggestion on using libraries such asreact-helmet
.Closes #386