mirror of
https://github.com/littensy/charm.git
synced 2026-10-21 03:36:11 +00:00
refactor: rename Source to Molecule
This commit is contained in:
parent
f2ec300204
commit
0046af5598
11 changed files with 60 additions and 50 deletions
|
|
@ -1,11 +1,11 @@
|
|||
local capture = require(script.Parent.capture)
|
||||
local store = require(script.Parent.store)
|
||||
|
||||
local function effect(source: () -> nil): () -> ()
|
||||
local atoms = capture(source)
|
||||
local function effect(molecule: () -> nil): () -> ()
|
||||
local atoms = capture(molecule)
|
||||
|
||||
local function listener()
|
||||
source()
|
||||
molecule()
|
||||
end
|
||||
|
||||
for atom in atoms do
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue