mirror of
https://github.com/littensy/charm.git
synced 2026-10-21 19:54:09 +00:00
refactor: code quality
This commit is contained in:
parent
f0a7938703
commit
8ca299f671
16 changed files with 82 additions and 101 deletions
|
|
@ -1,8 +1,7 @@
|
|||
local capture = require(script.Parent.capture)
|
||||
local store = require(script.Parent.store)
|
||||
|
||||
local function effect(molecule: () -> nil): () -> ()
|
||||
local atoms = capture(molecule)
|
||||
local atoms = store.capture(molecule)
|
||||
|
||||
local function listener()
|
||||
molecule()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue