You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to have observable dicts. This seems like a pattern that notifyr
might want to provide an implementation for, and docs with a recipe for observing other core types.
I noticed that observable(dict) fails because it adds update and collections use update. It would be useful to allow the method names to be configurable, or use semi-private names / dunder names, to avoid clashes with the wrapped classes API.
If the core type needs to be subclassed in order to be observed, a mixin would be helpful.
The text was updated successfully, but these errors were encountered:
I would like to have observable dicts. This seems like a pattern that notifyr
might want to provide an implementation for, and docs with a recipe for observing other core types.
I noticed that
observable(dict)
fails because it addsupdate
and collections useupdate
. It would be useful to allow the method names to be configurable, or use semi-private names / dunder names, to avoid clashes with the wrapped classes API.If the core type needs to be subclassed in order to be observed, a mixin would be helpful.
The text was updated successfully, but these errors were encountered: