Starts observing modules, calling the provided callbacks as modules are
added and removed. Calls onAdded with all existing modules right away,
so the initial state vs. updates can be managed easily without worrying
about race conditions.
Both callbacks are optional, but at least one of them must be provided.
Starts observing modules, calling the provided callbacks as modules are added and removed. Calls
onAddedwith all existing modules right away, so the initial state vs. updates can be managed easily without worrying about race conditions. Both callbacks are optional, but at least one of them must be provided.