Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add onYield hook #16

Merged
merged 1 commit into from
Mar 19, 2025
Merged

feat: add onYield hook #16

merged 1 commit into from
Mar 19, 2025

Conversation

sxzz
Copy link
Member

@sxzz sxzz commented Mar 18, 2025

Essentially, this hook was added to enable custom error handling for promises. The "Unexpected promise in sync context" error message isn't user-friendly in certain scenarios.

@sxzz sxzz requested a review from antfu March 18, 2025 20:19
@sxzz sxzz merged commit f3eda8e into main Mar 19, 2025
4 checks passed
@sxzz sxzz deleted the feat/onYield branch March 19, 2025 09:01
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.

1 participant