This commit is contained in:
aaron 2023-07-28 13:08:48 +01:00
parent 9021d04e1e
commit 1aa74310f3
6 changed files with 102 additions and 47 deletions

View file

@ -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")