Skip to content
This repository was archived by the owner on Sep 14, 2023. It is now read-only.
This repository was archived by the owner on Sep 14, 2023. It is now read-only.

Atom constructor options argument #6

Description

@derrickbeining

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.

Activity

  1. derrickbeining commented on Nov 24, 2018

    @derrickbeining
    OwnerAuthor

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

  2. changed the title [-]Atom constructor should take optional `validatorFn` like in Clojure[/-] [+]Atom constructor `options` argument[/+] on Nov 24, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions