mirror of
https://github.com/littensy/charm.git
synced 2026-10-20 17:51:37 +00:00
refactor(sync): destructure options argument
This commit is contained in:
parent
c7c5601e7c
commit
d703990e5b
2 changed files with 17 additions and 12 deletions
|
|
@ -33,10 +33,10 @@ type ClientSyncer = {
|
|||
@return A `ClientSyncer` object.
|
||||
]=]
|
||||
local function client(options: ClientOptions): ClientSyncer
|
||||
local self = {} :: ClientSyncer
|
||||
|
||||
local atoms = options.atoms
|
||||
local ignoreUnhydrated = options.ignoreUnhydrated ~= false
|
||||
|
||||
local self = {} :: ClientSyncer
|
||||
local hydrated = false
|
||||
|
||||
local function hydrate(state: { [string | number]: any })
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue