fix(PageComponent): fix initial state of selectionEnded to be true instead of false to prevent unnecessary re-rendering

This commit is contained in:
anovazzi1 2023-09-18 20:38:56 -03:00
commit 6e609c8dd0

View file

@ -363,7 +363,7 @@ export default function Page({
edgeUpdateSuccessful.current = true;
}, []);
const [selectionEnded, setSelectionEnded] = useState(false);
const [selectionEnded, setSelectionEnded] = useState(true);
const onSelectionEnd = useCallback(() => {
setSelectionEnded(true);