Skip to content

Commit

Permalink
fix reconcile null guard
Browse files Browse the repository at this point in the history
  • Loading branch information
ryansolid committed Nov 14, 2024
1 parent 73822b2 commit 199dd69
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/fresh-apricots-remain.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"solid-js": patch
---

fix reconcile null guard
2 changes: 1 addition & 1 deletion packages/solid/store/src/modifiers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ function applyState(
end >= start &&
newEnd >= start &&
(previous[end] === target[newEnd] ||
(key && previous[start] && target[start] && previous[end][key] === target[newEnd][key]));
(key && previous[end] && target[newEnd] && previous[end][key] === target[newEnd][key]));
end--, newEnd--
) {
temp[newEnd] = previous[end];
Expand Down

0 comments on commit 199dd69

Please sign in to comment.