@rbxts/app-forge 0.7.2-alpha.7 → 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
@@ -111,14 +112,16 @@ do
111
112
  _sources[_name] = _value
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
+ prev = value
119
116
  untrack(function()
120
117
  return self:checkRules(name)
121
118
  end)
119
+ return cleanup(function()
120
+ self.debug:logTag("state", name, "Visibility changed", {
121
+ from = prev,
122
+ to = value,
123
+ })
124
+ end)
122
125
  end)
123
126
  else
124
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.7",
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",