mirror of
https://github.com/littensy/charm.git
synced 2026-10-23 13:54:07 +00:00
refactor!: rename derive, map
This commit is contained in:
parent
f2f7a16599
commit
b715b81fec
18 changed files with 163 additions and 133 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue