Fix hydrated atom reactivity initial values#6551
Conversation
🦋 Changeset detectedLatest commit: 48d6b5e The changes in this PR will be included in the next version bump. This PR includes changesets to release 27 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 |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (3)
📝 WalkthroughWalkthroughHydrated serializable atoms now resolve their initial-value target and use ChangesHydrated atom reactivity
Estimated code review effort: 2 (Simple) | ~10 minutes Sequence Diagram(s)sequenceDiagram
participant Hydration
participant AtomRegistry
participant Atom
participant Reactivity
Hydration->>AtomRegistry: hydrate dehydrated atom state
AtomRegistry->>AtomRegistry: resolve initialValueTarget
AtomRegistry->>Atom: setInitialValue(decoded value)
Atom->>Reactivity: register invalidation callback during read
Reactivity->>AtomRegistry: trigger rebuild after mutation
Possibly related PRs
Suggested reviewers: 🚥 Pre-merge checks | ✅ 2✅ Passed checks (2 passed)
Comment |
|
@coderabbitai review |
✅ Action performedReview finished.
|
Summary
Fixes #6360.
Tests
Summary by CodeRabbit
Bug Fixes
Tests