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

Deep observe #32

Open
FirstVertex opened this issue Sep 18, 2019 · 3 comments
Open

Deep observe #32

FirstVertex opened this issue Sep 18, 2019 · 3 comments

Comments

@FirstVertex
Copy link

This advice on hardcoded nested observers will not work for my use case:
https://github.com/ElliotNB/observable-slim#nested-objects

The schema of the observed object is not known at compile-time.

Need a solution to automatically observe all changes to all properties of deep object whose schema is unknown.

Can this lib do it? Can you please provide sample?

@devarsh
Copy link

devarsh commented May 8, 2020

@hughanderson4 have you found a solution or an alternative library that can do it.

@ElliotNB
Copy link
Owner

ElliotNB commented Jul 9, 2020

@hughanderson4 @devarsh My apologies for the slow reply -- Observable Slim can accomplish those types of deep observations on objects whose schema is not known. Have you encountered a situation where it's not working as expected?

@devarsh
Copy link

devarsh commented Jul 9, 2020

@ElliotNB apologies when I wrote that, I hadn't fully explored the library and yes it certainly works.

Also thankyou for the wonderful library.

I would certainly like if it can accomplish something like

Obj={}

Obj.notExistingParent.notExistingChild = newValue.

Also the features to turn off observation and not queuing updates and only show recent updates when batching is turned on again that would be great.

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

No branches or pull requests

3 participants