mirror of
https://github.com/centau/vide.git
synced 2026-08-20 14:41:37 +00:00
Merge reactive scope refactor
This commit is contained in:
parent
0e439f084f
commit
efc4798ddb
48 changed files with 2750 additions and 1949 deletions
|
|
@ -3,7 +3,7 @@ type Action = {
|
|||
callback: (Instance) -> ()
|
||||
}
|
||||
|
||||
local ActionMT = {}
|
||||
local ActionMT = table.freeze {}
|
||||
|
||||
local function is_action(v: any)
|
||||
return getmetatable(v) == ActionMT
|
||||
|
|
@ -17,7 +17,7 @@ local function action(callback: (Instance) -> (), priority: number?): Action
|
|||
|
||||
setmetatable(t :: any, ActionMT)
|
||||
|
||||
return t
|
||||
return table.freeze(t)
|
||||
end
|
||||
|
||||
return function()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue