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

Suggestion: support synchronous events/emit #48

Open
zhaoyao91 opened this issue Feb 23, 2020 · 1 comment
Open

Suggestion: support synchronous events/emit #48

zhaoyao91 opened this issue Feb 23, 2020 · 1 comment

Comments

@zhaoyao91
Copy link

I am impressed by the api design of this library, but a big case does need support of synchrounous events: to proxy react input onChange event.

If this event is emitted asynchronously, the composition input like Chinese, Japanese will all fail down.

@vitaly-t
Copy link

vitaly-t commented Mar 5, 2020

@zhaoyao91 If you need synchronous events, maybe sub-events will be of some use ;)

It lets you specify optional EmitSchedule, which is synchronous by default, when emitting the event:

event.emit(data, {schedule: EmitSchedule.next});

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

No branches or pull requests

2 participants