diff --git a/src/components/Application.tsx b/src/components/Application.tsx index aaf34bc0..b4462557 100644 --- a/src/components/Application.tsx +++ b/src/components/Application.tsx @@ -94,7 +94,7 @@ const ApplicationImplementation = forwardRef(f applicationRef.current = application; updateResizeTo(); onInit?.(application); - }, [onInit]); + }, [onInit, updateResizeTo]); useIsomorphicLayoutEffect(() => { @@ -144,17 +144,12 @@ const ApplicationImplementation = forwardRef(f // @ts-expect-error The value of `children` is fine, but `PixiReactChildNode` doesn't strictly adhere to the `ReactNode` structure. root.render(({children}), applicationProps); } - }, [ - applicationProps, - children, - handleInit, - resizeTo, - ]); + }, [Bridge, applicationProps, children, handleInit, resizeTo]); useIsomorphicLayoutEffect(() => { updateResizeTo(); - }, [resizeTo]); + }, [updateResizeTo]); useIsomorphicLayoutEffect(() => {