Skip to content

Commit ed5a42e

Browse files
sharvilak11yyx990803
authored andcommitted
refactor(runetime-core): removed unnecessary condition check (#237)
1 parent 3b5e66b commit ed5a42e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/runtime-core/src/componentRenderUtils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ export function shouldUpdateComponent(
8989
return nextProps !== null
9090
}
9191
if (nextProps === null) {
92-
return prevProps !== null
92+
return true
9393
}
9494
return hasPropsChanged(prevProps, nextProps)
9595
}

0 commit comments

Comments
 (0)