Improve table view

Summary:
added component name, root component name, duration, event type and better names

changelog: UIDebugger - added event debugger table view and side panel views

Reviewed By: lblasa

Differential Revision: D48559367

fbshipit-source-id: d357ecf654b4e443eac7673731a8be542e76dd48
This commit is contained in:
Luke De Feo
2023-08-23 01:51:31 -07:00
committed by Facebook GitHub Bot
parent 5f9000aa82
commit 206ef79cf9
8 changed files with 112 additions and 45 deletions

View File

@@ -9,7 +9,10 @@
import {ClientNode, Id} from '../ClientTypes';
export function getNode(id: Id | undefined, nodes: Map<Id, ClientNode>) {
export function getNode(
id: Id | undefined,
nodes: Map<Id, ClientNode>,
): ClientNode | undefined {
//map just returns undefined when you pass null or undefined as a key
return nodes.get(id!);
}