nodejs.org
nodejs.org copied to clipboard
feat: Navigation state provider and hook
Description
Adds a Navigation State provider and hook to track scroll position and restore it on remount.
Validation
Related Issues
Temporary workaround for #6409 Get more info here - #6675
Check List
- [x] I have read the Contributing Guidelines and made commit messages that follow the guideline.
- [x] I have run
npm run formatto ensure the code follows the style guide. - [ ] I have run
npm run testto check if all tests are passing. - [x] I have run
npx turbo buildto check if the website builds without errors. - [ ] I've covered new added functionality with unit tests if necessary.
The latest updates on your projects. Learn more about Vercel for Git ↗︎
| Name | Status | Preview | Updated (UTC) |
|---|---|---|---|
| nodejs-org | ✅ Ready (Inspect) | Visit Preview | May 16, 2024 7:15am |
~~Keeping this as a draft until I write the tests~~
@abizek this is looking good! I left a few minor comments/suggestions and ideas :)
@ovflowd I refactored the effect and responded to some of your comments. Please take a look.
Lighthouse Results
| URL | Performance | Accessibility | Best Practices | SEO | Report |
|---|---|---|---|---|---|
| /en | 🟢 91 | 🟢 100 | 🟢 100 | 🟢 91 | 🔗 |
| /en/about | 🟢 100 | 🟢 100 | 🟢 100 | 🟢 91 | 🔗 |
| /en/about/previous-releases | 🟢 100 | 🟢 100 | 🟢 100 | 🟢 92 | 🔗 |
| /en/download | 🟢 100 | 🟢 100 | 🟢 96 | 🟢 91 | 🔗 |
| /en/blog | 🟢 98 | 🟢 100 | 🟢 100 | 🟢 92 | 🔗 |