mirror of
https://github.com/littensy/charm.git
synced 2026-10-21 03:36:11 +00:00
refactor: polish code, logo
This commit is contained in:
parent
18723c1377
commit
e7a1f5d235
7 changed files with 14 additions and 19 deletions
|
|
@ -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()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue