Fix Array Swap Detection#2172
Conversation
|
Caution Review failedPull request was closed or merged during review 📝 WalkthroughWalkthroughIntroduces ChangesArray Re-render on Value Change
Sequence DiagramsequenceDiagram
participant Component as Array Field Component
participant FormApi as FormApi
participant MetaHelper as metaHelper
participant Store as Reactive Store
Component->>FormApi: swapFieldValues(fieldName, idx1, idx2)
FormApi->>MetaHelper: bumpArrayVersion(fieldName)
MetaHelper->>FormApi: setFieldMeta(fieldName, {_arrayVersion: N+1})
FormApi->>Store: emit meta change
Store->>Component: state.meta._arrayVersion dependency fires
Component->>Component: re-render
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Poem
🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (1 warning, 1 inconclusive)
✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
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 |
|
View your CI Pipeline Execution ↗ for commit 124ce20
☁️ Nx Cloud last updated this comment at |
🚀 Changeset Version Preview7 package(s) bumped directly, 7 bumped as dependents. 🟨 Minor bumps
🟩 Patch bumps
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2172 +/- ##
==========================================
+ Coverage 90.35% 91.27% +0.91%
==========================================
Files 38 59 +21
Lines 1752 2314 +562
Branches 444 568 +124
==========================================
+ Hits 1583 2112 +529
- Misses 149 181 +32
- Partials 20 21 +1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Fixes #2018 for all adapters
Summary by CodeRabbit
Bug Fixes
Tests