Skip to content

Commit 04b8ad8

Browse files
authored
Merge pull request #2721 from Shopify/with-skia-web
fix(🌎): re-rendering issue with `<WithSkiaWeb />`
2 parents 950279b + 7438a37 commit 04b8ad8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Diff for: packages/skia/src/web/WithSkiaWeb.tsx

+3-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,9 @@ export const WithSkiaWeb = <TProps extends object>({
4141
}
4242
return getComponent();
4343
}),
44-
[getComponent, opts]
44+
// We we to run this only once.
45+
// eslint-disable-next-line react-hooks/exhaustive-deps
46+
[]
4547
);
4648
return (
4749
<Suspense fallback={fallback ?? null}>

0 commit comments

Comments
 (0)