-
Notifications
You must be signed in to change notification settings - Fork 24
Open
Description
When loading a module you have an event that generate an action when the module is loaded. The problem is that you want to be sure that the action already exists otherwise it will not be executed obviously.
In order to be 'sure' that the action exists I add it in the general preferences. However I get random results. Apparently in some case the action out from the module is executed before the general preferences action has been loaded and I don't understand why.
The relate loading order is I think here:
visualizer/src/src/main/entrypoint.js
Lines 127 to 148 in 0369bae
| var view = Versioning.getView(); | |
| var data = Versioning.getData(); | |
| Promise.all([ | |
| loadCustomFilters(), | |
| loadMainVariables(), | |
| configureRequirejs(), | |
| loadCustomModules() | |
| ]) | |
| .then(doInitScript) | |
| .then( | |
| function () { | |
| ActionManager.viewHasChanged(view); | |
| ModuleFactory.getModules().forEach(function (module) { | |
| if ( | |
| module.controller && | |
| typeof module.controller.onGlobalPreferenceChange === 'function' | |
| ) { | |
| module.controller.onGlobalPreferenceChange(); | |
| } | |
| }); | |
| _modulesSet.then(checkCustomModules, checkCustomModules); | |
| }, |
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels