Skip to content

Commit 199dd69

Browse files
committed
fix reconcile null guard
1 parent 73822b2 commit 199dd69

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/fresh-apricots-remain.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"solid-js": patch
3+
---
4+
5+
fix reconcile null guard

packages/solid/store/src/modifiers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ function applyState(
5454
end >= start &&
5555
newEnd >= start &&
5656
(previous[end] === target[newEnd] ||
57-
(key && previous[start] && target[start] && previous[end][key] === target[newEnd][key]));
57+
(key && previous[end] && target[newEnd] && previous[end][key] === target[newEnd][key]));
5858
end--, newEnd--
5959
) {
6060
temp[newEnd] = previous[end];

0 commit comments

Comments
 (0)