Skip to content

Commit

Permalink
fix: add missing shouldAbortRender() check
Browse files Browse the repository at this point in the history
  • Loading branch information
fwouts committed Aug 26, 2023
1 parent 7b87ea2 commit e90917a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions iframe/preview/__previewjs_internal__/update-component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ export async function updateComponent({
currentState.propsAssignmentSource,
jsxFactory
);
if (shouldAbortRender()) {
return;
}
sendMessageFromPreview({
kind: "rendering-setup",
});
Expand Down

0 comments on commit e90917a

Please sign in to comment.