@rbxts/app-forge 0.7.2-alpha.6 → 0.7.2-alpha.8

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.
@@ -5,6 +5,7 @@ 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
8
9
  local create = _vide.create
9
10
  local effect = _vide.effect
10
11
  local mount = _vide.mount
@@ -109,11 +110,18 @@ do
109
110
  local _name = name
110
111
  local _value = value
111
112
  _sources[_name] = _value
113
+ local prev
112
114
  effect(function()
113
- value()
115
+ prev = value
114
116
  untrack(function()
115
117
  return self:checkRules(name)
116
118
  end)
119
+ return cleanup(function()
120
+ self.debug:logTag("state", name, "Visibility changed", {
121
+ from = prev,
122
+ to = value,
123
+ })
124
+ end)
117
125
  end)
118
126
  else
119
127
  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.6",
3
+ "version": "0.7.2-alpha.8",
4
4
  "description": "An App Manager for Vide",
5
5
  "main": "out/init.lua",
6
6
  "types": "out/index.d.ts",