Skip to content

In addition to waiting for all promises to settle, handle post-hoc additions/removals - #3961

Merged
DmitrySharabin merged 1 commit into
simplifyfrom
all-settled-ad-hoc
Jun 17, 2025
Merged

In addition to waiting for all promises to settle, handle post-hoc additions/removals#3961
DmitrySharabin merged 1 commit into
simplifyfrom
all-settled-ad-hoc

Conversation

@DmitrySharabin

Copy link
Copy Markdown
Member

@github-actions

github-actions Bot commented Jun 16, 2025

Copy link
Copy Markdown

No JS Changes

Generated by 🚫 dangerJS against c7b5e87

Comment thread src/core/classes/prism.ts
if (!this.config.manual) {
this.waitFor.push(documentReady());

this.ready = allSettled(this.waitFor);

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't need this workaround anymore: we set the initial value of ready on line 35.

@DmitrySharabin
DmitrySharabin requested a review from LeaVerou June 16, 2025 15:31
@DmitrySharabin DmitrySharabin changed the title In addition to waiting for all promises to settle, handle post-hoc additions In addition to waiting for all promises to settle, handle post-hoc additions/removals Jun 17, 2025
@DmitrySharabin
DmitrySharabin merged commit 7c7c598 into simplify Jun 17, 2025
@DmitrySharabin
DmitrySharabin deleted the all-settled-ad-hoc branch June 17, 2025 13:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants