Releases: kkuegler/vue-parent-emit
Releases · kkuegler/vue-parent-emit
v3.1.1
v3.1.0
feat: Allow registering the listener synchronously
Instead of scheduling listener registration for onMounted() one can now also directly register the listener (using a new immediate
option). This helps with setting up the listener after mounting, because in that case onMounted()
does not run.
This allows using useExternalEvent(props.myEvent, this.myEventCallback, {immediate: true})
even in the Vue Options API, replacing the previous addListener
/removeListener
approach.
feat: Add removeListeners() method
This allows clearing the listeners without having access to the same function instance(s) we had when registering.
Full Changelog: v3.0.0...v3.1.0
v1.1.0
v3.0.0
v1.0.2
3.0.0-alpha.1
(API breaking) rewrite for Vue 3