Skip to content

TableManager:OnKeyAdd() misses updates if new keys are added quickly #38

@Mophyr

Description

@Mophyr

Consider a previously registered TableManager / TableReplicator.
Now, adding 1+ different entries to the top level managed table, as following:

for i = 1, 2 do
    myTableManager:Set({"SomeKey_" .. tostring(i)}, {
        some = "Value"
    })
end

and attempting to listen to those changes on the Client doing

myTableManager:OnKeyAdd(nil, function(key: string, entry: {[string]: any})
    print(key)
end)

Only prints out SomeKey_1, completely disregarding new entries after the first one to be listened to from within.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions