You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I found some problems with mitt. Will these problems be considered in the future?
constemitter=mitt();emitter.on("evt",()=>{});emitter.on("evt",()=>{throw"some error."})emitter.on("evt",()=>{/** do something... */})
while the
emitter.emit("evt");
happen, there is no chance to run the third callback.
Also,
emitter.on("evt",()=>{emitter.off("evt")});emitter.on("evt",()=>{/** do something... */});emitter.on("evt",()=>{emitter.off("*")});emitter.on("*",()=>{/** do something... */});emitter.on("*",()=>{/** do something... */});emitter.on("*",()=>{/** do something... */});
while the
emitter.emit("evt");
happen, there is no chance to run the "*" callback, but can run the second "evt" callback.
Also,
mitt not supports
emitter.off();// off all of the listeners.
The text was updated successfully, but these errors were encountered:
I found some problems with mitt. Will these problems be considered in the future?
while the
happen, there is no chance to run the third callback.
Also,
while the
happen, there is no chance to run the "*" callback, but can run the second "evt" callback.
Also,
mitt not supports
The text was updated successfully, but these errors were encountered: