Skip to content

Commit

Permalink
refactor: change return type of renderToCanvas cleanup function to async
Browse files Browse the repository at this point in the history
  • Loading branch information
valentinpalkovic committed Jan 7, 2025
1 parent 3139720 commit b066e56
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/renderers/react/src/renderToCanvas.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,8 @@ export async function renderToCanvas(
processActQueue();
});

return () => {
act(() => {
return async () => {
await act(() => {
unmountElement(canvasElement);
});
};
Expand Down

0 comments on commit b066e56

Please sign in to comment.