Skip to content

Commit eb8f3aa

Browse files
committed
fix: add missing dependencies to hooks
1 parent 873b900 commit eb8f3aa

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

src/components/Application.tsx

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ const ApplicationImplementation = forwardRef<ApplicationRef, ApplicationProps>(f
9494
applicationRef.current = application;
9595
updateResizeTo();
9696
onInit?.(application);
97-
}, [onInit]);
97+
}, [onInit, updateResizeTo]);
9898

9999
useIsomorphicLayoutEffect(() =>
100100
{
@@ -144,17 +144,12 @@ const ApplicationImplementation = forwardRef<ApplicationRef, ApplicationProps>(f
144144
// @ts-expect-error The value of `children` is fine, but `PixiReactChildNode` doesn't strictly adhere to the `ReactNode` structure.
145145
root.render((<Bridge>{children}</Bridge>), applicationProps);
146146
}
147-
}, [
148-
applicationProps,
149-
children,
150-
handleInit,
151-
resizeTo,
152-
]);
147+
}, [Bridge, applicationProps, children, handleInit, resizeTo]);
153148

154149
useIsomorphicLayoutEffect(() =>
155150
{
156151
updateResizeTo();
157-
}, [resizeTo]);
152+
}, [updateResizeTo]);
158153

159154
useIsomorphicLayoutEffect(() =>
160155
{

0 commit comments

Comments
 (0)