[Feature]: Add FilterNodes extension method when using TransformToTree /w Children-aware filtering
lltwist opened this issue ยท 3 comments
lltwist commented
Describe the functionality desired ๐
The question was already raised in [Question] Child node filtering when using TransformToTree , but closed.
Right now .Filter is filtering only root nodes of cache. There is no access to children to do it manually cause Children are exposed only as IObservableCache, method Update is also internal. Also there is no available methods to ovveride FilterStatic to implement custom Node aware logic.
It might be great to filter tree by keys, with option to leave whole branch (ancestors) up to filtering key.
Also great to have Ancestors auro-prop in Node.
Thanks
The steps the functionality will provide
- Go to '...'
- Click on '....'
- Scroll down to '....'
- See error
Considerations
Custom ovveride
JakenVeina commented
Shouldn't you be able to accomplish this by just applying .Filter()
before .TransformToTree()
?