developit / developit/mitt

Nuxt3 issues ?

Aperta
#160 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
TypeScript
Stelle
11.9k
Fork
488
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

I`m struggling to make it work with a nuxt3 project (static , ssr:false).

Basically it DOES emit the events, but it's harder to receive them.
I added this in: current component , sub-component, sub-sub-component
`emitter.on('*', () => { alert(1)});`

And only the one in the current component is triggered. Don't seem to be able to go cross-components. Might be because of how nuxt encapsulates the components ~_~ .. but currently I have no easy solution for "global" events..

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.