so its more about how big the 'reactions' are to the emits. rather than how many subscriptions exist. also to clarify what i meant by performance issue is more like the app feeling laggy in general, i dont mind as much the loading time of records, or refresh time for updating. for example i once made the mistake of not unsubbing and at one point had 20+ subscriptions running, everything just felt laggy even my mouse movement
now for more context, my features actually has these selectors in a service but my components only really react to one observable which is a combinelatest of all my selectors(around 5-10).
so I may be subscribed to 5 or more observables(including combinedlatest counted as 1) but only 1 is 'connected' to the component
also lets say the 'features' are just paginated grids w/ 20 records each. and the reaction to this combinelatest obs is just to refresh the 20 records.
to summarize (assuming i have 5 features with 5 observables/subscriptions each)
- only 2 observables which are the combinedlatest selectors, at a time that can cause reaction to components
- component reaction just means refreshing 20 records in a page of the grid (can happen on both features at the same time)
- other 20 just does some simple side effect like updating a variable in the service because only the services are running and the components are hidden. the remaining 3 are the combinedlatest of the selectors. which will also keep running but basically just creates the array but again no component reaction
with that in mind do you think im safe to scale up to like 10-20 features with the current design.