refactor(sync): destructure options argument

This commit is contained in:
Richard 2025-01-25 14:19:26 -08:00
parent c7c5601e7c
commit d703990e5b
2 changed files with 17 additions and 12 deletions

View file

@ -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 })