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 <pyshx@users.noreply.github.com>
  • Loading branch information
rot1024 and pyshx committed Jul 2, 2023
1 parent 842252f commit e123578
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

0 comments on commit e123578

Please sign in to comment.