Skip to content

Commit

Permalink
fix: prevent flicker when using resolveData with arrays
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisvxd committed Nov 14, 2024
1 parent 39dd619 commit 1be9b88
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -137,12 +137,16 @@ export const ArrayField = ({
event.destination?.index
);

onChange(newValue, {
const newUi = {
arrayState: {
...state.ui.arrayState,
[id]: { ...arrayState, items: newArrayStateItems },
},
});
};

setUi(newUi, false);

onChange(newValue, newUi);

setLocalState({
value: newValue,
Expand Down

0 comments on commit 1be9b88

Please sign in to comment.