Renames global key to key

Summary: Renames global key to key

Reviewed By: pentiumao

Differential Revision: D49268637

fbshipit-source-id: 9c3e11ce78380048eed75d554170319e81892efd
This commit is contained in:
Aditya Sharat
2023-09-14 07:45:23 -07:00
committed by Facebook GitHub Bot
parent 8062e2c9e5
commit ba94a2416c

View File

@@ -78,7 +78,7 @@ object UIDebuggerLithoSupport {
val treeId = event.renderStateId.toIntOrNull() ?: -1 val treeId = event.renderStateId.toIntOrNull() ?: -1
val globalKey = val globalKey =
event.attributeOrNull<String>(DebugEventAttribute.GlobalKey)?.let { event.attributeOrNull<String>("Key")?.let {
DebugComponent.generateGlobalKey(treeId, it).hashCode() DebugComponent.generateGlobalKey(treeId, it).hashCode()
} }
val duration = event.attributeOrNull<Duration>(DebugEventAttribute.duration) val duration = event.attributeOrNull<Duration>(DebugEventAttribute.duration)