mirror of
https://github.com/centau/vide.git
synced 2026-08-20 23:01:37 +00:00
This commit is contained in:
parent
9021d04e1e
commit
1aa74310f3
6 changed files with 102 additions and 47 deletions
|
|
@ -27,7 +27,7 @@ local function wrap<T>(value: MaybeState<T>?): (State<T>, Setter<T>)
|
|||
|
||||
local v = if wrapped(vi) then get(vi :: State<T>) else vi :: T
|
||||
|
||||
if v ~= state.cache or force then
|
||||
if v ~= state.__cache or force then
|
||||
set(state, v)
|
||||
elseif flags.strict and type(v) == "table" then
|
||||
throw("attempt to set same table object")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue