Skip to content

Commit

Permalink
Performance issue fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenthoms committed Jun 13, 2024
1 parent f256fbc commit 48e0954
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,7 @@ function makeLayer<T extends keyof LayerDataTypeMap>(
}

export function EsvIntersection(props: EsvIntersectionProps): React.ReactNode {
console.debug("esv intersection render");
const { onReadout, onViewportChange } = props;

const [prevAxesOptions, setPrevAxesOptions] = React.useState<AxisOptions | undefined>(undefined);
Expand Down Expand Up @@ -385,7 +386,7 @@ export function EsvIntersection(props: EsvIntersectionProps): React.ReactNode {
}

setLayerIds(newLayerIds);
setPrevLayers(cloneDeep(props.layers));
setPrevLayers(props.layers);
}
}

Expand Down

0 comments on commit 48e0954

Please sign in to comment.