I had a problem: My application had multiple independent parts, which needed their own states. For example, I have a toolbar that’s on top and …