Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support watching of (collections of) reactive objects #90

Merged
merged 5 commits into from
Oct 26, 2023

Conversation

berendkleinhaneveld
Copy link
Collaborator

@berendkleinhaneveld berendkleinhaneveld commented Oct 2, 2023

This allows for:

a = reactive({"foo": "foo"})

watcher = watch(a, cb, ...)

and

a = reactive({"foo": "foo"})
b = reactive(["bar"])

watcher = watch([a, b], cb, ...)

instead of:

watcher = watch(lambda: a, cb, ...)

observ/watcher.py Outdated Show resolved Hide resolved
@berendkleinhaneveld berendkleinhaneveld changed the title Support watching of reactive objects Support watching of (collections of) reactive objects Oct 26, 2023
observ/watcher.py Outdated Show resolved Hide resolved
@Korijn Korijn merged commit b34e666 into master Oct 26, 2023
8 checks passed
@Korijn Korijn deleted the support-watching-reactive-objects branch October 26, 2023 22:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Generate watch expressions from (arrays of) watchable objects
2 participants