Skip to content

Commit

Permalink
fix(hooks/use-real-shape): remove unnecessary dependency from `useCal…
Browse files Browse the repository at this point in the history
…lback`
  • Loading branch information
AnYiEE committed Aug 13, 2024
1 parent e46bc18 commit 2702cb5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/hooks/use-real-shape/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export function useRealShape<T extends HTMLElement>(ref: RefObject<T | null>) {
const {width, height} = getRealShape(ref.current);

setState({width, height});
}, [ref]);
}, []);

useEffect(() => updateShape(), [updateShape]);

Expand Down

0 comments on commit 2702cb5

Please sign in to comment.