Gaia/System/NewModule: Difference between revisions

Jump to navigation Jump to search
 
Line 34: Line 34:


=== If the parent module is based on BaseModule ===
=== If the parent module is based on BaseModule ===
# Put the module in the parent module's SUB_MODULES if you think it's blocking the starting progress of the parent module. # If the new module is not as important to block the parent, use this.loadWhenIdle([NEW_MODULE]) in parent's start function
# Put the module in the parent module's SUB_MODULES if you think it's blocking the starting progress of the parent module.
# If the new module is not as important to block the parent, use this.loadWhenIdle([NEW_MODULE]) in parent's start function
# If the new module is only serving some on demand request, consider to lazy load the new module in the parent module's event handler and start it.
# If the new module is only serving some on demand request, consider to lazy load the new module in the parent module's event handler and start it.


Confirmed users
401

edits

Navigation menu