refactor!: rename derive, map

This commit is contained in:
Richard 2024-05-26 21:31:28 -07:00
parent f2f7a16599
commit b715b81fec
18 changed files with 163 additions and 133 deletions

View file

@ -15,6 +15,7 @@ local function client(options: ClientOptions): ClientSyncer
local atoms = options.atoms
local self = {} :: ClientSyncer
-- Apply the state changes sent by the server.
function self:sync(payload)
for key, state in payload.data do
if payload.type == "patch" then