Skip to content

Conversation

@WardCunningham
Copy link
Member

Here we remove the callback from the emit preferring to make it async instead.

This work precipitated by the deprecation of callbacks when we emit from plugins.
fedwiki/wiki-client#348

Method evaluates the calculation called for by its markup during the emit. This evaluation expects a callback itself. This is where display update happens such that computations show in the freshly emitted display. We wrap this logic with new Promise(...) replacing the sole reference to the removed emit parameter with the resolve offered by the promise.

@paul90 paul90 merged commit 97c7a2e into main Oct 12, 2025
3 checks passed
@paul90 paul90 deleted the ward/async branch October 12, 2025 09:02
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.

3 participants