Skip to content

Add once method to event hubs

Paul Gascou-Vaillancourt requested to merge event-hub-factory-once into master

What does this MR do?

We recently started to migrate away from Vue event hubs in favor of a mitt-based approach. However, mitt doesn't expose a once method, which can be a problem as we rely on the soon to be deprecated $once method in some places.

This MR adds a .once() method to our mitt event hubs and binds it to $once as well.

An alternative approach would be to use dush instead of mitt as it supports once out-of-the-box.

Screenshots

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Edited by Paul Gascou-Vaillancourt

Merge request reports