isEquivalentTo

Compares this component to a different one to check if they are the same

This is used to be able to skip rendering a component again. We avoid using the equals so we can optimize the code better over time since we don't have to adhere to the contract required for a equals method.

Return

true if the components are of the same type and have the same props

Parameters

other

the component to compare to


fun isEquivalentTo(@Nullable other: Component, shouldCompareCommonProps: Boolean): Boolean