-
Notifications
You must be signed in to change notification settings - Fork 200
Description
This is a...
- usage question
Hi,
I was wondering if there's an alternative approach to implementing selectors that doesn't require us to explicitly expose the shape of the state tree. I feel like having components know about the state shape is breaking encapsulation and will make refactoring a lot more difficult (especially if you're passing strings to @select()).
It seems to me that there's no good reason for components to even know that Redux is being used to manage state in a large application. One way of getting around the issue could be to only use the implement the selection logic in services and simply return observables / values?
That way, in theory, we could potentially switch out Redux without need to make many (any?) changes to components.
Just wondering if I'm missing anything or if there are any gotchas with this approach or if something already exists to handle this problem?