-
Notifications
You must be signed in to change notification settings - Fork 20
Open
Description
No. If you're interested in doing that, use something like nanotick to batch events and ensure they run asynchronously.
I'm probably misunderstanding something here, but I have a timing issue that sure seems async when calling emitter.emit.
module.exports = function view (state, emit, props = {}) {
var id = state.params.msgId
// emit('autopilot:edit-message', id)
let {item} = state.autopilot.findItemById(id)
state.autopilot.current = itemThe listener for 'edit-message' only has the two lines that follow //emit... Calling emit instead of the two lines results in an error downstream because state.autopilot.current isn't set yet.
Metadata
Metadata
Assignees
Labels
No labels