react-atom icon indicating copy to clipboard operation
react-atom copied to clipboard

Atom constructor `options` argument

Open derrickbeining opened this issue 6 years ago • 1 comments

For example, in Clojure, swap! takes an optional validatorFn. See Clojure docs: https://clojuredocs.org/clojure.core/atom. This could potentially make swap and set more type-safe for JS.

derrickbeining avatar Nov 20 '18 17:11 derrickbeining

Perhaps additional options, like a atomWillUpdate and atomDidUpdate callbacks could be useful. ???

derrickbeining avatar Nov 24 '18 23:11 derrickbeining