minor tweak

This commit is contained in:
Reinaldo Neto 2022-08-10 16:23:18 -03:00
parent 6415e88407
commit 5cd6dfdc1d
1 changed files with 0 additions and 1 deletions

View File

@ -154,7 +154,6 @@ const Root = () => {
// Dimensions update fires twice
const onDimensionsChange = useCallback(
debounce(({ window: { width, height, scale, fontScale } }: { window: IDimensions }) => {
// Test when migrate to React 18 https://reactjs.org/blog/2022/03/29/react-v18.html#new-feature-automatic-batching
// We need this batchedUpdates because we are calling this from a debounce and
// the React isn't able to batch multiples setState inside a setTimeout
// https://stackoverflow.com/a/48610973