mirror of
https://github.com/centau/vide.git
synced 2026-08-20 14:41:37 +00:00
Minor refactors
Also fixed potential bug with `create()` being called recursively if a property binding passed as a property to `create()` also calls `create()`
This commit is contained in:
parent
8eb5f96c5b
commit
c288cb92c4
16 changed files with 169 additions and 130 deletions
|
|
@ -14,6 +14,7 @@ local effect = require(script.effect)
|
|||
local derive = require(script.derive)
|
||||
local cleanup = require(script.cleanup)
|
||||
local untrack = require(script.untrack)
|
||||
local read = require(script.read)
|
||||
local batch = require(script.batch)
|
||||
local switch = require(script.switch)
|
||||
local show = require(script.show)
|
||||
|
|
@ -60,10 +61,8 @@ local vide = {
|
|||
-- util
|
||||
cleanup = cleanup,
|
||||
untrack = untrack,
|
||||
read = read,
|
||||
batch = batch,
|
||||
read = function<T>(value: T | () -> T): T
|
||||
return if type(value) == "function" then value() else value
|
||||
end,
|
||||
|
||||
-- animations
|
||||
spring = spring,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue