Remove redundant native scan event
Summary: It didnt need to exist and can be seen as a subtree update of type full scan Reviewed By: lblasa Differential Revision: D39731552 fbshipit-source-id: e351413d9480e118fc000c5e55eae0e7980233f2
This commit is contained in:
committed by
Facebook GitHub Bot
parent
78e84a0cc3
commit
7ae2c35476
@@ -35,11 +35,6 @@ export function plugin(client: PluginClient<Events>) {
|
||||
});
|
||||
});
|
||||
|
||||
client.onMessage('nativeScan', ({nodes}) => {
|
||||
//Native scan is a full update so overwrite everything
|
||||
nodesAtom.set(new Map(nodes.map((node) => [node.id, node])));
|
||||
});
|
||||
|
||||
return {rootId, snapshots: snapshotsAtom, nodes: nodesAtom, perfEvents};
|
||||
}
|
||||
|
||||
|
||||
@@ -8,8 +8,7 @@
|
||||
*/
|
||||
|
||||
export type Events = {
|
||||
init: {rootId: string};
|
||||
nativeScan: {txId: number; nodes: UINode[]};
|
||||
init: InitEvent;
|
||||
subtreeUpdate: SubtreeUpdateEvent;
|
||||
perfStats: PerfStatsEvent;
|
||||
};
|
||||
@@ -21,6 +20,8 @@ export type SubtreeUpdateEvent = {
|
||||
snapshot: Snapshot;
|
||||
};
|
||||
|
||||
export type InitEvent = {rootId: Id};
|
||||
|
||||
export type PerfStatsEvent = {
|
||||
txId: number;
|
||||
observerType: string;
|
||||
@@ -50,8 +51,8 @@ export type Bounds = {
|
||||
height: number;
|
||||
};
|
||||
|
||||
export type Id = string;
|
||||
export type Snapshot = string;
|
||||
export type Id = number;
|
||||
|
||||
export type Tag = 'Native' | 'Declarative' | 'Android' | 'Litho ';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user