@nrbx/topbar-components 1.1.3 → 1.1.4

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.
@@ -21,11 +21,11 @@ local function useAnimateableProps(state, props, ...)
21
21
  for i = 0, #keys - 1 do
22
22
  local key = keys[i + 1]
23
23
  local value = stateful(props[key], state)
24
- local previousValue = stateful(previousProps, state)
24
+ local previousValue = if previousProps then stateful(previousProps[key], state) else nil
25
25
  if value == previousValue then
26
26
  continue
27
27
  end
28
- motionControls[i + 1].spring(value, springs.responsive)
28
+ motionControls[i + 1]:spring(value, springs.responsive)
29
29
  end
30
30
  end, { props })
31
31
  -- ▼ ReadonlyArray.map ▼
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nrbx/topbar-components",
3
- "version": "1.1.3",
3
+ "version": "1.1.4",
4
4
  "main": "out/init.luau",
5
5
  "scripts": {
6
6
  "build": "rbxtsc",
@@ -42,7 +42,7 @@
42
42
  "dependencies": {
43
43
  "@rbxts/object-utils": "^1.0.4",
44
44
  "@rbxts/pretty-react-hooks": "^0.6.4",
45
- "@rbxts/ripple": "^0.9.3",
45
+ "@rbxts/ripple": "^0.9.1",
46
46
  "@rbxts/services": "^1.6.0",
47
47
  "@rbxts/t": "^3.2.1"
48
48
  },