object-observer icon indicating copy to clipboard operation
object-observer copied to clipboard

Allow omission of observed keys and handling of cyclic references

Open BennyH26 opened this issue 3 years ago • 2 comments

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.

BennyH26 avatar Feb 26 '23 12:02 BennyH26

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

gullerya avatar Feb 27 '23 09:02 gullerya

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.

gullerya avatar Mar 01 '23 11:03 gullerya