Im not really sure if Im understanding correctly the way observables work and how to get references from mounted tags. I have a component. Within this comp
Maybe overkill but simple. let riot self observable
riot
riot.observable(riot);
So you can use
riot.on('someEvent', () => { // doing something });
in a tag, and
riot.trigger('someEvent');
in another.
It's not good to use global variable, but use an already exists one maybe acceptable.