@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.
Files changed (2) hide show
  1. package/out/vide/init.luau +10 -5
  2. package/package.json +1 -1
@@ -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
- prev = value()
115
- self.debug:logTag("state", name, "Visibility changed", {
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", {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rbxts/app-forge",
3
- "version": "0.7.2-alpha.7",
3
+ "version": "0.7.2-alpha.9",
4
4
  "description": "An App Manager for Vide",
5
5
  "main": "out/init.lua",
6
6
  "types": "out/index.d.ts",