@rbxts/app-forge 0.7.2-alpha.8 → 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 +5 -3
- package/package.json +1 -1
package/out/vide/init.luau
CHANGED
|
@@ -5,7 +5,6 @@ local RunService = TS.import(script, TS.getModule(script, "@rbxts", "services"))
|
|
|
5
5
|
-- Packages
|
|
6
6
|
local _vide = TS.import(script, TS.getModule(script, "@rbxts", "vide").src)
|
|
7
7
|
local apply = _vide.apply
|
|
8
|
-
local cleanup = _vide.cleanup
|
|
9
8
|
local create = _vide.create
|
|
10
9
|
local effect = _vide.effect
|
|
11
10
|
local mount = _vide.mount
|
|
@@ -110,18 +109,21 @@ do
|
|
|
110
109
|
local _name = name
|
|
111
110
|
local _value = value
|
|
112
111
|
_sources[_name] = _value
|
|
112
|
+
local count = 0
|
|
113
113
|
local prev
|
|
114
114
|
effect(function()
|
|
115
|
+
count += 1
|
|
115
116
|
prev = value
|
|
116
117
|
untrack(function()
|
|
117
118
|
return self:checkRules(name)
|
|
118
119
|
end)
|
|
119
|
-
|
|
120
|
+
if count == 1 then
|
|
120
121
|
self.debug:logTag("state", name, "Visibility changed", {
|
|
121
122
|
from = prev,
|
|
122
123
|
to = value,
|
|
123
124
|
})
|
|
124
|
-
|
|
125
|
+
count = 0
|
|
126
|
+
end
|
|
125
127
|
end)
|
|
126
128
|
else
|
|
127
129
|
self.logger:log("WARN", "forge.bind called while game is running", {
|