remove clientHeight from dep list
This commit is contained in:
parent
ca9501e3cc
commit
19a377a9e5
@ -18,5 +18,5 @@ export const useCenterOrderbook = ({ marketId, orderbookRef }: ElementProps) =>
|
||||
if (orderbookEl && shouldScroll) {
|
||||
orderbookEl.scrollTo({ top: (scrollHeight - clientHeight) / 2 });
|
||||
}
|
||||
}, [clientHeight, shouldScroll, marketId]);
|
||||
}, [shouldScroll, marketId]);
|
||||
};
|
||||
|
||||
Loading…
Reference in New Issue
Block a user