if we have an Atom we want to subscribe to the atom in observers with an id reportObserved('1');, and then we need to make the updates also with ids reportChanged('1');, That's because we have multiple observers for the same Atom and we don't want to rebuild all the Observers in case of any update on the Atom, therefore specific Observers that should be rebuilded only based on the update id.
In the example below only the Observer number 1 should be rebuilded although that the two Observers are connected with the same Atom
if we have an
Atom
we want to subscribe to the atom in observers with an idreportObserved('1');
, and then we need to make the updates also with idsreportChanged('1');
, That's because we have multiple observers for the sameAtom
and we don't want to rebuild all theObservers
in case of any update on theAtom
, therefore specificObservers
that should be rebuilded only based on the update id.In the example below only the Observer number 1 should be rebuilded although that the two
Observers
are connected with the sameAtom