Remove per node snapshot in favour of single top level snapshot
Summary: In order to support focus mode we need to have only 1 snapshot. In practice this is the case but we are making this more apparant in this diff. Reviewed By: lblasa Differential Revision: D41493003 fbshipit-source-id: 19ed7213d15adaea4732f4ec60309efa8dae6f94
This commit is contained in:
committed by
Facebook GitHub Bot
parent
b576060339
commit
01f7fa34e5
@@ -24,7 +24,6 @@ export function Component() {
|
||||
const rootId = useValue(instance.rootId);
|
||||
const nodes: Map<Id, UINode> = useValue(instance.nodes);
|
||||
const metadata: Map<MetadataId, Metadata> = useValue(instance.metadata);
|
||||
const snapshots: Map<Id, Snapshot> = useValue(instance.snapshots);
|
||||
|
||||
const [showPerfStats, setShowPerfStats] = useState(false);
|
||||
const [selectedNode, setSelectedNode] = useState<Id | undefined>(undefined);
|
||||
@@ -70,7 +69,6 @@ export function Component() {
|
||||
<Visualization2D
|
||||
rootId={rootId}
|
||||
nodes={nodes}
|
||||
snapshots={snapshots}
|
||||
selectedNode={selectedNode}
|
||||
onSelectNode={setSelectedNode}
|
||||
modifierPressed={ctrlPressed}
|
||||
|
||||
Reference in New Issue
Block a user