Skip to content

:watch option for IRef value #27

@robertluo

Description

@robertluo

(let [a (atom {:b 1 :c 1})] (run {(list :a :watch watching) {:b ? :c ?}} {:a a}))

will add a watch on atom a, whenever a changes and causing :b, :c value changes, watching function will be called with new data and old data as its arguments. If watching returns nil, we can remove the watch.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions