Skip to content

Any way to avoid container overwrites in child maps? #750

@msdrigg

Description

@msdrigg

So I have a nested data type which tracks a number of items like this: {items: { itemId1: {data1: data, data2: data}...}}. Am I understanding the docs right that I should be storing this as {items.itemId1: {data...}} in Loro to avoid potential container-overwriting errors? This does make de-serialization more confusing. And more generally, it means that the nested JSON capabilities of Loro kind of irrelevant because now I have to iterate through all the root keys (including non-item-related keys) and then filter for ones where key.starts_with("items.").

Is there any way to get around this? Maybe there could be some way to specify the child container id manually to avoid collisions/overwrites?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions