reactivemarbles/DynamicData

[Feature]: Add FilterNodes extension method when using TransformToTree /w Children-aware filtering

lltwist opened this issue ยท 3 comments

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

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Considerations

Custom ovveride

Shouldn't you be able to accomplish this by just applying .Filter() before .TransformToTree()?