MobX reacts to any existing observable property that is read during the execution of a tracked function . “reading” is dereferencing an object’s property, which can be done through “dotting into” it (eg. user.name ) or using the bracket notation (eg. user[‘name’] , todos[3] ) or destructuring (eg.
Read moreWhat is an observer React?
In the pattern “Observer” an object, called “subject”, maintains a list of its dependencies, called “observers”, and automatically notifies them of any change of state, usually calling one of its methods.
Read more