Hello whats the difference between reagent.core/atom
vs reagent.ratom/atom
?
they're the same
https://github.com/reagent-project/reagent/blob/master/src/reagent/core.cljs#L215
@lilactown Thank you for the quick response 🙂
@vishal.gautam
just to be clear, they act the same. So, generally speaking, you use a ratom
as you would an atom
. But they are different under the covers.
ratoms
gain special powers within Reagent Components (which normal atoms
don't have). viz. If a ratom
is changed (`swap!`, etc), any Components which use them are re-rendered