Skip to content

Commit

Permalink
perf(web): speed up fetching layers with datasets (#544)
Browse files Browse the repository at this point in the history
Co-authored-by: Piyush Chauhan <[email protected]>
  • Loading branch information
rot1024 and pyshx authored Jul 2, 2023
1 parent 47ce14c commit a3a1bd2
Show file tree
Hide file tree
Showing 11 changed files with 1,068 additions and 767 deletions.
6 changes: 3 additions & 3 deletions web/src/classic/components/molecules/Visualizer/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export type Props = {
floatingWidgets?: Widget[];
alignSystem?: WidgetAlignSystemType;
layoutConstraint?: WidgetAlignSystemProps["layoutConstraint"];
ownBuiltinWidgets?: { [K in keyof BuiltinWidgets<boolean>]?: BuiltinWidgets<boolean>[K] };
ownBuiltinWidgets?: (keyof BuiltinWidgets<boolean>)[];
};
sceneProperty?: SceneProperty;
tags?: Tag[];
Expand Down Expand Up @@ -213,8 +213,8 @@ export default function Visualizer({
isLayerDragging={isLayerDragging}
isLayerDraggable={props.isEditable}
shouldRender={
!!widgets?.ownBuiltinWidgets?.[TIMELINE_BUILTIN_WIDGET_ID] ||
!!widgets?.ownBuiltinWidgets?.[NAVIGATOR_BUILTIN_WIDGET_ID]
!!widgets?.ownBuiltinWidgets?.includes(TIMELINE_BUILTIN_WIDGET_ID) ||
!!widgets?.ownBuiltinWidgets?.includes(NAVIGATOR_BUILTIN_WIDGET_ID)
}
meta={engineMeta}
inEditor={inEditor}
Expand Down
Loading

0 comments on commit a3a1bd2

Please sign in to comment.