loro-dev / loro

Reimagine state management with CRDTs. Make your app collaborative effortlessly.
https://loro.dev
MIT License
4.14k stars 77 forks source link

feat: get shallow value of doc #463

Closed Leeeon233 closed 1 month ago

Leeeon233 commented 1 month ago

Do we need to filter out empty containers? Otherwise, a root container cannot be hidden from the returned value forever, which I'm not sure whether it's the best approach.

I think we can provide some relevant API for users to filter it? The user may want to keep the schema consistent and keep all the content even if it is empty.

zxch3n commented 1 month ago

I think we can provide some relevant API for users to filter it? The user may want to keep the schema consistent and keep all the content even if it is empty.

Okay