The useSubscription method allows you to subscribe to changes from a given module, and automatically handles component's reactivity. Returns the transformed state each time it changes.
useSubscription(moduleId: string, reducer?: (newState:any) => any): any
moduleId Id of the module to subscribe to.
reducer Optional state reducer. Allows you to transform the new state to get exactly what you need. Defaults to the identify function.