Fork me on GitHub
#reagent
<
2020-05-10
>
v18:05:28

Hello whats the difference between reagent.core/atom vs reagent.ratom/atom ?

lilactown18:05:22

they're the same

v18:05:47

@U4YGF4NGM Thank you for the quick response 🙂

mikethompson23:05:18

@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.

p-himik03:05:42

The question was about ratom vs ratom. :) There's an alias in Reagent.

mikethompson23:05:23

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