@rbxts/app-forge 0.4.0 → 0.4.2
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/decorator.luau +4 -2
- package/out/rules.luau +1 -0
- package/package.json +1 -1
package/out/decorator.luau
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
-- Compiled with roblox-ts v3.0.0
|
|
2
2
|
local TS = _G[script]
|
|
3
|
+
-- Services
|
|
4
|
+
local RunService = TS.import(script, TS.getModule(script, "@rbxts", "services")).RunService
|
|
3
5
|
-- Packages
|
|
4
6
|
local usePx = TS.import(script, TS.getModule(script, "@rbxts", "loners-pretty-react-hooks").out).usePx
|
|
5
7
|
-- Types
|
|
@@ -32,7 +34,7 @@ do
|
|
|
32
34
|
error("App name is required in Args constructor")
|
|
33
35
|
end
|
|
34
36
|
local bind = forge:getBind(name)
|
|
35
|
-
if not bind then
|
|
37
|
+
if not bind and RunService:IsRunning() then
|
|
36
38
|
error("FAILED TO GET BIND FOR APP!")
|
|
37
39
|
end
|
|
38
40
|
local px = usePx(target)
|
|
@@ -43,7 +45,7 @@ do
|
|
|
43
45
|
self.props = _object
|
|
44
46
|
self.name = name
|
|
45
47
|
self.bind = bind
|
|
46
|
-
self.state = self.bind:getValue()
|
|
48
|
+
self.state = if self.bind then self.bind:getValue() else nil
|
|
47
49
|
end
|
|
48
50
|
end
|
|
49
51
|
return {
|
package/out/rules.luau
CHANGED