Skip to content

Commit

Permalink
fix(πŸ›): unmount container after drawing texture (#2301)
Browse files Browse the repository at this point in the history
  • Loading branch information
wcandillon authored Mar 26, 2024
1 parent 81384bf commit b07153a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions package/src/renderer/Offscreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ export const drawAsPicture = (element: ReactElement) => {
const ctx = new JsiDrawingContext(Skia, canvas);
root.dom.render(ctx);
const picture = recorder.finishRecordingAsPicture();
root.unmount();
return picture;
};

Expand Down

0 comments on commit b07153a

Please sign in to comment.