fix(form-core): fix fields being stale on array changes #1729
MergedLeCarbonator(GitHub profile, opens in a new tab)merged 22 commits into
main fromrefs/pull/1729/headmerged by LeCarbonator(GitHub profile, opens in a new tab) LeCarbonator(GitHub profile, opens in a new tab) changed the title
LeCarbonator(GitHub profile, opens in a new tab) changed the title
LeCarbonator(GitHub profile, opens in a new tab) changed the title
- packages/react-form/src/useField.tsx line 224OutdatedResolvedby LeCarbonator(GitHub profile, opens in a new tab)@@ -217,4 +217,8 @@217217 extendedApi.Field = Field as never218218219219 return extendedApi220- })220+ // We only want to221+ // update on name changes since those are at risk of becoming stale. The field222+ // state must be up to date for the internal JSX render.223+ // The other options can freely be in `fieldApi.update`224+ // eslint-disable-next-line react-compiler/react-compiler
harry-whorlow(GitHub profile, opens in a new tab) approved these changes
LeCarbonator(GitHub profile, opens in a new tab) closed this
Sign in to join this conversation.
View your CI Pipeline Execution ↗ for commit 4a489fa9a88463737e9c5436692d3b9291a0348c
nx affected --targets=test:sherif,test:knip,tes...nx run-many --target=build --exclude=examples/**☁️ Nx Cloud last updated this comment at
2025-11-24 10:11:17UTC