Skip to content

Commit

Permalink
[fix] 삭제시 부모노드가 없는 경우 반영 #28
Browse files Browse the repository at this point in the history
- 상태 변경시 삭제노드의 경우 Vnode가 없는데 분기를 적용안함
  • Loading branch information
ji3427 committed Dec 3, 2020
1 parent 0b8ec4f commit 1b5e8ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/boostact/Boostact.js
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ const isUnchanged = (curChild, vChild) => {
const determineState = (curChild, vChild) => {
const sameType = curChild && vChild && curChild.type === vChild.type;

if (vChild.parent.effectTag === "PLACEMENT") {
if (vChild && vChild.parent.effectTag === "PLACEMENT") {
vChild.alternate = curChild;
vChild.dom = null;
vChild.effectTag = "PLACEMENT";
Expand Down

0 comments on commit 1b5e8ea

Please sign in to comment.