The talk was on-point. I fully agree with the points and also feel the need for a better
state management solution.
The library has an interesting approach that might work, but I have some reservations:
1. subscribing with the using keyword feels scary as I don't have a conceptual model of what's going on. Why isn't useEffect enough here?
2. As I understand, stores can be initialised with props, but how would I go about passing dynamic values into the store? For instance, what if I want to pass a react-router search param into the StoreProvider whenever it changes?
3. an issue that I have with all state management solutions is that, when you wan't to integrate with another state-manager like react-query, you need to fall back to hooks as the lowest-common denominator. Maybe it would help if Signals supported Observables in addition to promises, so that we can build a
4. related to 2 and 3, I often hold my state in the url or in local storage. A universal state management solution would need to integrate with these external sources. Otherwise, much of the derived state will be computed in the components rather than the stores.
The library has an interesting approach that might work, but I have some reservations:
1. subscribing with the using keyword feels scary as I don't have a conceptual model of what's going on. Why isn't useEffect enough here?
2. As I understand, stores can be initialised with props, but how would I go about passing dynamic values into the store? For instance, what if I want to pass a react-router search param into the StoreProvider whenever it changes?
3. an issue that I have with all state management solutions is that, when you wan't to integrate with another state-manager like react-query, you need to fall back to hooks as the lowest-common denominator. Maybe it would help if Signals supported Observables in addition to promises, so that we can build a
4. related to 2 and 3, I often hold my state in the url or in local storage. A universal state management solution would need to integrate with these external sources. Otherwise, much of the derived state will be computed in the components rather than the stores.