refactor(runetime-core): removed unnecessary condition check (#237)

This commit is contained in:
Sharvilak 2019-10-12 20:30:29 +05:30 committed by Evan You
parent 3b5e66b4c5
commit ed5a42e588

View File

@ -89,7 +89,7 @@ export function shouldUpdateComponent(
return nextProps !== null
}
if (nextProps === null) {
return prevProps !== null
return true
}
return hasPropsChanged(prevProps, nextProps)
}