refactor: polish code, logo

This commit is contained in:
Richard 2024-02-25 12:05:59 -08:00
parent 18723c1377
commit e7a1f5d235
7 changed files with 14 additions and 19 deletions

View file

@ -3,7 +3,7 @@ type Atom<T> = atom.Atom<T>
local reference = require(script.Parent.utils.reference)
local function subscribe<State>(atom: Atom<State>, callback: (state: State, lastState: State) -> ()): (() -> (), () -> ())
local function subscribe<State>(atom: Atom<State>, callback: (state: State, previous: State) -> ()): (() -> (), () -> ())
local pending: thread? = nil
local state = atom:get()