Basic new tree implemenation
Summary: The old implementation would always rerender on every operation (select, hover etc) and was quite slow for large hierachies Reviewed By: lblasa Differential Revision: D41838166 fbshipit-source-id: 1270841027926440a9c1f1a846d3aedc75ffe8bf
This commit is contained in:
committed by
Facebook GitHub Bot
parent
3fc319ea36
commit
a6544489f3
@@ -20,6 +20,7 @@ import {Inspector} from './sidebar/Inspector';
|
||||
import {Controls} from './Controls';
|
||||
import {Input, Spin} from 'antd';
|
||||
import FeedbackRequest from './fb-stubs/feedback';
|
||||
import {Tree2} from './Tree2';
|
||||
|
||||
export function Component() {
|
||||
const instance = usePlugin(plugin);
|
||||
@@ -44,7 +45,7 @@ export function Component() {
|
||||
<Layout.Horizontal grow pad="small" gap="small">
|
||||
<Layout.Container grow gap="small">
|
||||
<Layout.ScrollContainer>
|
||||
<Tree
|
||||
<Tree2
|
||||
selectedNode={selectedNode}
|
||||
onSelectNode={setSelectedNode}
|
||||
nodes={nodes}
|
||||
|
||||
Reference in New Issue
Block a user