Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@imbhargav5
Copy link
Owner

Summary

Modernize 6 hooks from useState + useEffect to useSyncExternalStore for cleaner subscription management and better SSR support:

  • useWindowSize
  • useOrientation
  • useMouse
  • useMouseMoveDelta
  • useMouseWheelDelta
  • useNetworkInformation

Test plan

  • All 115 test files pass (7 skipped)
  • 1130 tests pass (43 skipped)
  • Tests for all 6 migrated hooks pass successfully

🤖 Generated with Claude Code

Modernize 6 hooks (useWindowSize, useOrientation, useMouse, useMouseMoveDelta, useMouseWheelDelta, useNetworkInformation) from useState + useEffect to useSyncExternalStore for cleaner subscription management and better SSR support.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Haiku 4.5 <[email protected]>
@codesandbox
Copy link

codesandbox bot commented Dec 13, 2025

Review or Edit in CodeSandbox

Open the branch in Web EditorVS CodeInsiders

Open Preview

@vercel
Copy link

vercel bot commented Dec 13, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
rooks Ready Ready Preview, Comment Dec 13, 2025 5:23am

@netlify
Copy link

netlify bot commented Dec 13, 2025

Deploy Preview for rooksjs ready!

Name Link
🔨 Latest commit 68028b7
🔍 Latest deploy log https://app.netlify.com/projects/rooksjs/deploys/693cf7f2aea3be00084a2dcb
😎 Deploy Preview https://deploy-preview-1895--rooksjs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <[email protected]>
@imbhargav5 imbhargav5 merged commit 83aada2 into main Dec 13, 2025
8 checks passed
@imbhargav5 imbhargav5 deleted the imbhargav5/useSyncExternalStore-candidates branch December 13, 2025 05:27
@github-actions github-actions bot mentioned this pull request Dec 13, 2025
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.

2 participants