These are the responsibilities of a store:
Read moreHow does MobX React work?
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 moreWhat are MobX reactions?
The MobX triad is completed when we add Reactions into the mix. Having reactions is what triggers the reactivity in the system. A reaction implicitly tracks all the observables which are being used and then re-executes its logic whenever the depending observables change .
Read moreWhat is a MobX store?
The primary purpose of MobX is to simplify the management of Reactive State in your application . As your application scales, the amount of state you manage will also increase. This requires some techniques to break down your application state and divvy it up across a set of stores.
Read more