Returns the state as a flow for observing updates. The latest state will be immediately emitted to a new subscriber.