Skip to content

Commit

Permalink
fix: fix bug when eventInfo is null from dispatch data multiple
Browse files Browse the repository at this point in the history
  • Loading branch information
bailicangdu committed Aug 26, 2022
1 parent 54bd8a9 commit c5898e9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/interact/event_center.ts
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,10 @@ export default class EventCenter {
callbacks: new Set(),
}
this.eventList.set(name, eventInfo)
/**
* When sent data to parent, eventInfo probably does not exist, because parent may listen to datachange
*/
eventInfo.force = true
}
// add to queue, event eventInfo is null
this.enqueue(name, nextStep, dispatchDataEvent)
Expand Down

0 comments on commit c5898e9

Please sign in to comment.