Introduction
Up until now we have been taking a low level approach to state management. We have been working directly with the underlying concepts and seeing exactly how the data flow from our sources to our state works.
- We create a
source
that is an observable stream - We
subscribe
to thatsource
to pull the data out - We
update
asignal
using the value from thesource
It is important to understand what is going on and doing everything more manually like this is a great way to learn the concepts.
In fact, I think it is fine to use the approach we have been using indefinitely — there is some boilerplate involved, but it is still reasonably simple to set up.