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