We saw how to update our widgets and our refs, but it would be better if we could separate the whole logic of updating our states from the UI.
In state_watcher we can do it by creating a Provided
with an object applying a specific mixin called StateLogic
: