Skip to content

Commit

Permalink
fix: top ref callback update
Browse files Browse the repository at this point in the history
  • Loading branch information
goshander committed Nov 15, 2023
1 parent 9032e66 commit 429074b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/AsideHeader/useAsideHeaderTopPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export const useAsideHeaderTopPanel = ({
clientHeight + 'px',
);
}
}, []);
}, [topRef]);

React.useLayoutEffect(() => {
const updateTopSizeDebounce = debounceFn(updateTopSize, 200, {leading: true});
Expand Down

0 comments on commit 429074b

Please sign in to comment.