Skip to content

Commit

Permalink
fix: update onInit handler in <Application>
Browse files Browse the repository at this point in the history
Signed-off-by: Trezy <[email protected]>
  • Loading branch information
trezy committed Feb 5, 2025
1 parent a8da228 commit 92954ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Application.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ const ApplicationImplementation = forwardRef<ApplicationRef, ApplicationProps>(f

if (!root)
{
root = createRoot(canvasElement, {}, handleInit);
root = createRoot(canvasElement, { onInit: handleInit });
}

// @ts-expect-error The value of `children` is fine, but `PixiReactChildNode` doesn't strictly adhere to the `ReactNode` structure.
Expand Down

0 comments on commit 92954ee

Please sign in to comment.