Skip to content

Commit

Permalink
Merge pull request #2721 from Shopify/with-skia-web
Browse files Browse the repository at this point in the history
fix(🌎): re-rendering issue with `<WithSkiaWeb />`
  • Loading branch information
wcandillon authored Nov 1, 2024
2 parents 950279b + 7438a37 commit 04b8ad8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/skia/src/web/WithSkiaWeb.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ export const WithSkiaWeb = <TProps extends object>({
}
return getComponent();
}),
[getComponent, opts]
// We we to run this only once.
// eslint-disable-next-line react-hooks/exhaustive-deps
[]
);
return (
<Suspense fallback={fallback ?? null}>
Expand Down

0 comments on commit 04b8ad8

Please sign in to comment.