Skip to content

Commit

Permalink
fix(patch): ignore prop nt handling undefined VNode case
Browse files Browse the repository at this point in the history
  • Loading branch information
aidenybai committed Oct 12, 2021
1 parent 2a44e62 commit 3844193
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/patch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export const compose =
if (!hasString) {
const oldVElement = <VElement>oldVNode;
const newVElement = <VElement>newVNode;
if (oldVElement.props?.ignore || newVElement.props?.ignore) return el;
if (oldVElement?.props?.ignore || newVElement?.props?.ignore) return el;
if (
(oldVElement?.key === undefined && newVElement?.key === undefined) ||
oldVElement?.key !== newVElement?.key
Expand Down

0 comments on commit 3844193

Please sign in to comment.