generateGlobalKey

fun generateGlobalKey(parentContext: ComponentContext, parentComponent: Component?, childComponent: Component): String

Generate a global key for the given component that is unique among all of this component's children of the same type. If a manual key has been set on the child component using the .key() method, return the manual key.

Return

a unique global key for this component relative to its siblings.

TODO: (T38237241) remove the usage of the key handler post the nested tree experiment

Parameters

parentComponent

parent component within the layout context

childComponent

child component with the parent context