isEquivalent

fun isEquivalent(current: Component?, next: Component?, shouldCompareCommonProps: Boolean = ComponentsConfiguration.shouldCompareCommonPropsInIsEquivalentTo): Boolean

Given two components this method accesses all their internal fields, excluding the fields of StateContainer if the class type is a Component, to check if they are equivalent. There's special equality code to handle special class types e.g. Components, EventHandlers, etc.

Return

true iff the component fields are equivalent.

Parameters

current

current Component

next

next Component