@rbxts/app-forge 0.6.0-alpha.24 → 0.6.0-alpha.25

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,7 +1,6 @@
1
1
  -- Compiled with roblox-ts v3.0.0
2
2
  local TS = _G[script]
3
3
  -- Services
4
- local RunService = TS.import(script, TS.getModule(script, "@rbxts", "services")).RunService
5
4
  -- Packages
6
5
  local usePx = TS.import(script, TS.getModule(script, "@rbxts", "loners-pretty-react-hooks").out).usePx
7
6
  -- Types
@@ -33,10 +32,6 @@ do
33
32
  if not (name ~= "" and name) then
34
33
  error("App name is required in Args constructor")
35
34
  end
36
- local bind = forge:getBind(name)
37
- if not bind and RunService:IsRunning() then
38
- error("FAILED TO GET BIND FOR APP!")
39
- end
40
35
  local px = usePx(target)
41
36
  self.forge = forge
42
37
  local _object = table.clone(props.props)
@@ -45,8 +40,8 @@ do
45
40
  _object.forge = forge
46
41
  self.props = _object
47
42
  self.name = name
48
- self.bind = bind
49
- self.state = if self.bind then self.bind:getValue() else nil
43
+ self.bind = forge:getBind(name)
44
+ self.state = forge:getState(name)
50
45
  end
51
46
  end
52
47
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rbxts/app-forge",
3
- "version": "0.6.0-alpha.24",
3
+ "version": "0.6.0-alpha.25",
4
4
  "description": "An App Manager for react",
5
5
  "main": "out/init.lua",
6
6
  "types": "out/index.d.ts",