refactor(runetime-core): removed unnecessary condition check (#237)
This commit is contained in:
parent
3b5e66b4c5
commit
ed5a42e588
@ -89,7 +89,7 @@ export function shouldUpdateComponent(
|
||||
return nextProps !== null
|
||||
}
|
||||
if (nextProps === null) {
|
||||
return prevProps !== null
|
||||
return true
|
||||
}
|
||||
return hasPropsChanged(prevProps, nextProps)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user