@rbxts/app-forge 0.6.0-alpha.76 → 0.6.0-alpha.78

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.
@@ -1,5 +1,5 @@
1
1
  import type AppForge from "../..";
2
2
  export default class Rules {
3
3
  protected processing: Set<string>;
4
- protected applyRules(this: AppForge, name: AppNames): void;
4
+ protected checkRules(this: AppForge, name: AppNames): void;
5
5
  }
@@ -19,7 +19,7 @@ do
19
19
  function Rules:constructor()
20
20
  self.processing = {}
21
21
  end
22
- function Rules:applyRules(name)
22
+ function Rules:checkRules(name)
23
23
  local _processing = self.processing
24
24
  local _name = name
25
25
  if _processing[_name] ~= nil then
@@ -77,7 +77,7 @@ do
77
77
  effect(function()
78
78
  value()
79
79
  untrack(function()
80
- return self:applyRules(name)
80
+ return self:checkRules(name)
81
81
  end)
82
82
  end)
83
83
  else
@@ -98,9 +98,6 @@ do
98
98
  if rules == nil then
99
99
  rules = true
100
100
  end
101
- if rules then
102
- self:applyRules(name)
103
- end
104
101
  local _sources = self.sources
105
102
  local _name = name
106
103
  local src = _sources[_name]
@@ -114,6 +111,9 @@ do
114
111
  return nil
115
112
  end
116
113
  src(value)
114
+ if rules then
115
+ self:checkRules(name)
116
+ end
117
117
  end
118
118
  function AppForge:open(name, rules)
119
119
  if rules == nil then
@@ -142,10 +142,10 @@ do
142
142
  end
143
143
  function AppForge:mount(callback, props, target)
144
144
  local Container = callback()
145
- apply(Container)({
146
- [0] = self:renderMount(props),
147
- })
148
145
  self.innerMount = mount(function()
146
+ apply(Container)({
147
+ [0] = self:renderMount(props),
148
+ })
149
149
  return Container
150
150
  end, target)
151
151
  return self.innerMount
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rbxts/app-forge",
3
- "version": "0.6.0-alpha.76",
3
+ "version": "0.6.0-alpha.78",
4
4
  "description": "An App Manager for Vide",
5
5
  "main": "out/init.lua",
6
6
  "types": "out/index.d.ts",