Skip to content

Commit

Permalink
dom: Don't continue to mount component if it's already been unmounted
Browse files Browse the repository at this point in the history
  • Loading branch information
Nefsen402 committed Oct 24, 2024
1 parent a4adcfa commit b0ca22c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dom.js
Original file line number Diff line number Diff line change
Expand Up @@ -407,6 +407,8 @@ export const h = (e, props = {}, ...children) => {
};

const defer = () => {
if (!m) return;

assert(m === noop);
assert(currentErrorContext = errorContext);

Expand Down

0 comments on commit b0ca22c

Please sign in to comment.