Skip to content

Commit

Permalink
chore: lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
haakonflatval-cognite committed Sep 12, 2024
1 parent e56a844 commit dd37da8
Showing 1 changed file with 9 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@
* Copyright 2023 Cognite AS
*/
import { type ReactElement, useEffect, useState, useRef } from 'react';
import { GeometryFilter, type AddModelOptions, type CogniteCadModel } from '@cognite/reveal';
import { type GeometryFilter, type AddModelOptions, type CogniteCadModel } from '@cognite/reveal';
import { useReveal } from '../RevealCanvas/ViewerContext';
import { Matrix4 } from 'three';
import { type Matrix4 } from 'three';
import { useRevealKeepAlive } from '../RevealKeepAlive/RevealKeepAliveContext';
import { useReveal3DResourcesCount } from '../Reveal3DResources/Reveal3DResourcesInfoContext';
import { isEqual } from 'lodash';
import { modelExists } from '../../utilities/modelExists';
import { getViewerResourceCount } from '../../utilities/getViewerResourceCount';
import { type CadModelStyling } from './types';
import { useApplyCadModelStyling } from './useApplyCadModelStyling';
import { isSameCadModel, isSameGeometryFilter, isSameModel } from '../../utilities/isSameModel';
import { isSameGeometryFilter, isSameModel } from '../../utilities/isSameModel';

export type CogniteCadModelProps = {
addModelOptions: AddModelOptions;
Expand Down Expand Up @@ -64,7 +64,12 @@ export function CadModelContainer({

useApplyCadModelStyling(model, styling);

useEffect(() => () => removeModel(model), [model]);
useEffect(
() => () => {
removeModel(model);
},
[model]
);

return <></>;

Expand Down

0 comments on commit dd37da8

Please sign in to comment.