Case Loader wants to know if modules were installed by installer
Events will not work because of order: ex
and emit "installed" event
loader listens for installed event ---------- This will never get called since event was emited before
then load modules
// hci-loader
// This will be fired right away with undefined if there is no value setted
loader_context.watch('hci-installer:installed',(value) => {
if(value == true) {
this.loadBundles();
}
});
// hci-installer
// This will store value in a contextual property and fire event for 'hci-installer:installed'
installer_context.value('installed',true); // Not that will send 'modname':context
It can be used for several other things, storing states, listening for things, event alternative events