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

feat: Navigation state provider and hook #6709

Merged
merged 3 commits into from May 18, 2024

Conversation

abizek
Copy link
Contributor

@abizek abizek commented May 4, 2024

Description

Adds a Navigation State provider and hook to track scroll position and restore it on remount.

Validation

2024-05-0408-39-39-ezgif com-video-to-gif-converter

Related Issues

Temporary workaround for #6409
Get more info here - #6675 (comment)

Check List

  • I have read the Contributing Guidelines and made commit messages that follow the guideline.
  • I have run npm run format to ensure the code follows the style guide.
  • I have run npm run test to check if all tests are passing.
  • I have run npx turbo build to check if the website builds without errors.
  • I've covered new added functionality with unit tests if necessary.

Temporary workaround for nodejs#6409
Get more info here - nodejs#6675

Signed-off-by: abizek <abishekilango@protonmail.com>
Copy link

vercel bot commented May 4, 2024

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

@abizek
Copy link
Contributor Author

abizek commented May 4, 2024

Keeping this as a draft until I write the tests

@abizek abizek marked this pull request as ready for review May 4, 2024 07:44
@abizek abizek requested a review from a team as a code owner May 4, 2024 07:44
@abizek abizek mentioned this pull request May 12, 2024
@ovflowd
Copy link
Member

ovflowd commented May 13, 2024

@abizek this is looking good! I left a few minor comments/suggestions and ideas :)

Signed-off-by: abizek <abishekilango@protonmail.com>
@abizek
Copy link
Contributor Author

abizek commented May 14, 2024

@ovflowd I refactored the effect and responded to some of your comments. Please take a look.

Copy link

github-actions bot commented May 14, 2024

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 🔗

Copy link

github-actions bot commented May 14, 2024

Unit Test Coverage Report

Lines Statements Branches Functions
Coverage: 91%
90.04% (588/653) 76.08% (175/230) 92.18% (118/128)

Unit Test Report

Tests Skipped Failures Errors Time
128 0 💤 0 ❌ 0 🔥 6.342s ⏱️

Copy link
Member

@ovflowd ovflowd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As much as I'd like to nitpick more, I believe we should land this as it is.

Awesome work, @abizek; Thank you so much for going back and forth and helping us out here, I tenfold appreciate your work here!

Copy link
Contributor

@AugustinMauroy AugustinMauroy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clean first contribution !

Signed-off-by: abizek <abishekilango@protonmail.com>
@ovflowd ovflowd added this pull request to the merge queue May 18, 2024
Merged via the queue into nodejs:main with commit 97b851f May 18, 2024
15 checks passed
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

Successfully merging this pull request may close these issues.

None yet

4 participants