mirror of
https://github.com/littensy/charm.git
synced 2026-10-23 22:21:37 +00:00
feat!: replace split with mapAtom
This commit is contained in:
parent
fc3cd6d9ad
commit
4d4979daa9
11 changed files with 188 additions and 245 deletions
|
|
@ -3,12 +3,12 @@ _G[script.modules.Promise] = _G[script]
|
|||
local atom = require(script.atom)
|
||||
local derive = require(script.derive)
|
||||
local isAtom = require(script.isAtom)
|
||||
local mapAtom = require(script.mapAtom)
|
||||
local observe = require(script.observe)
|
||||
local split = require(script.split)
|
||||
local subscribe = require(script.subscribe)
|
||||
local useAtom = require(script.react.useAtom)
|
||||
local useAtomState = require(script.react.useAtomState)
|
||||
local useSetAtom = require(script.react.useSetAtom)
|
||||
local subscribe = require(script.subscribe)
|
||||
local sync = require(script.sync)
|
||||
|
||||
export type Atom<State> = atom.Atom<State>
|
||||
|
|
@ -19,7 +19,7 @@ return {
|
|||
derive = derive,
|
||||
isAtom = isAtom,
|
||||
observe = observe,
|
||||
split = split,
|
||||
mapAtom = mapAtom,
|
||||
subscribe = subscribe,
|
||||
sync = sync,
|
||||
useAtom = useAtom,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue