Skip to content

Commit

Permalink
fix(core): ensure all keys are reconciled
Browse files Browse the repository at this point in the history
  • Loading branch information
ricokahler committed Sep 6, 2024
1 parent 0587ee5 commit 6393df8
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,7 @@ function _immutableReconcile<T>(
const result: Record<string, unknown> = {}
parents.set(next, result)
for (const key of nextKeys) {
const nextValue = next.propertyIsEnumerable(key)
? _immutableReconcile(previous[key], next[key]!, parents)
: next[key]
const nextValue = _immutableReconcile(previous[key], next[key]!, parents)
if (nextValue !== previous[key]) {
allEqual = false
}
Expand Down

0 comments on commit 6393df8

Please sign in to comment.