@rbxts/app-forge 0.7.2-alpha.7 → 0.7.2-alpha.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/out/vide/init.luau +10 -5
- package/package.json +1 -1
package/out/vide/init.luau
CHANGED
|
@@ -109,16 +109,21 @@ do
|
|
|
109
109
|
local _name = name
|
|
110
110
|
local _value = value
|
|
111
111
|
_sources[_name] = _value
|
|
112
|
+
local count = 0
|
|
112
113
|
local prev
|
|
113
114
|
effect(function()
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
from = prev,
|
|
117
|
-
to = value,
|
|
118
|
-
})
|
|
115
|
+
count += 1
|
|
116
|
+
prev = value
|
|
119
117
|
untrack(function()
|
|
120
118
|
return self:checkRules(name)
|
|
121
119
|
end)
|
|
120
|
+
if count == 1 then
|
|
121
|
+
self.debug:logTag("state", name, "Visibility changed", {
|
|
122
|
+
from = prev,
|
|
123
|
+
to = value,
|
|
124
|
+
})
|
|
125
|
+
count = 0
|
|
126
|
+
end
|
|
122
127
|
end)
|
|
123
128
|
else
|
|
124
129
|
self.logger:log("WARN", "forge.bind called while game is running", {
|