-
Notifications
You must be signed in to change notification settings - Fork 0
fix: Fix user session provider not syncing when server session differs from cached client state #707
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
fix: Fix user session provider not syncing when server session differs from cached client state #707
Conversation
…s from cached client state
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
🦋 Changeset detectedLatest commit: 678ac78 The changes in this PR will be included in the next version bump. This PR includes changesets to release 18 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
WalkthroughThis patch fix addresses a synchronization issue where the user session provider fails to sync when the server session differs from cached client state. Changes add a new effect to synchronize server and client user IDs and make callback notifications conditional on actual state changes. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Disabled knowledge base sources:
⛔ Files ignored due to path filters (2)
📒 Files selected for processing (5)
🧰 Additional context used📓 Path-based instructions (6)examples/blog-with-auth/**/*.{ts,tsx,js,jsx}📄 CodeRabbit inference engine (examples/blog-with-auth/CLAUDE.md)
Files:
examples/blog-with-auth/**/*.{ts,tsx}📄 CodeRabbit inference engine (examples/blog-with-auth/CLAUDE.md)
Files:
**/*.{ts,tsx}📄 CodeRabbit inference engine (.cursor/rules/code-style.mdc)
Files:
**/*.{ts,tsx,js}📄 CodeRabbit inference engine (.cursor/rules/code-style.mdc)
Files:
.changeset/*.md📄 CodeRabbit inference engine (AGENTS.md)
Files:
plugins/**/plugin-*/**/*.{jsx,tsx}📄 CodeRabbit inference engine (plugins/CLAUDE.md)
Files:
🧠 Learnings (1)📚 Learning: 2025-11-25T22:46:20.505ZApplied to files:
🧬 Code graph analysis (2)examples/blog-with-auth/apps/admin/src/app/user-session-provider.tsx (2)
plugins/plugin-auth/src/local-auth/core/generators/react-session/templates/src/app/user-session-provider.tsx (2)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (5)
🔇 Additional comments (7)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.