Optional paramaters accepted by Atom.of
the type of the Atom's inner state
Validates the next state of an Atom during Atom.of, swap, and set. It should either return a boolean or throw an error. If it returns false, then an Error is thrown and the new state is not committed.
boolean
false
() => true
Optional paramaters accepted by Atom.of