bigbite / macy.js

http://macyjs.com/
MIT License
1.3k stars 156 forks source link

fix: emit EVENT_INITIALIZED call timing #96

Closed lzj666888 closed 2 years ago

lzj666888 commented 2 years ago

Hello, In the setup function, because of the single-threaded synchronous execution of the code, emit EVENT_INITIALIZED will be executed before the user listens for the event, so add the asynchronous condition exit initialization event.

The problem happens in the follow issues:

image