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

Allow omission of observed keys and handling of cyclic references #128

Open
BennyH26 opened this issue Feb 26, 2023 · 2 comments
Open

Allow omission of observed keys and handling of cyclic references #128

BennyH26 opened this issue Feb 26, 2023 · 2 comments

Comments

@BennyH26
Copy link

When observing large objects, for efficiency it would be very useful to allow omission of certain observed keys. This was originally brought to my attention because an object I was observing contained a cyclic reference (and thus omitting it would have saved the day). In the same vein, in addition to omitting certain keys, it would be useful to allow object-observer to handle cyclic references by only observing the first instance of such keys.

@gullerya
Copy link
Owner

Please take a look onto #129 specifically for the circular piece, any remarks on the said there are welcome.

@gullerya
Copy link
Owner

gullerya commented Mar 1, 2023

The circular thing handled as part of #129 and released in 5.1.7.
The optional skip paths or other kind of approach for optioning the creation of Observable will be considered as part of the next major 6.x.x version (which I'm moving to be published as a scoped package @gullerya/object-observer), please follow up that one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants