@tamagui/web 1.124.5 → 1.124.7

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tamagui/web",
3
- "version": "1.124.5",
3
+ "version": "1.124.7",
4
4
  "source": "src/index.ts",
5
5
  "main": "dist/cjs",
6
6
  "module": "dist/esm",
@@ -27,22 +27,22 @@
27
27
  "reset.css"
28
28
  ],
29
29
  "dependencies": {
30
- "@tamagui/compose-refs": "1.124.5",
31
- "@tamagui/constants": "1.124.5",
32
- "@tamagui/helpers": "1.124.5",
33
- "@tamagui/normalize-css-color": "1.124.5",
34
- "@tamagui/timer": "1.124.5",
35
- "@tamagui/types": "1.124.5",
36
- "@tamagui/use-did-finish-ssr": "1.124.5",
37
- "@tamagui/use-event": "1.124.5",
38
- "@tamagui/use-force-update": "1.124.5"
30
+ "@tamagui/compose-refs": "1.124.7",
31
+ "@tamagui/constants": "1.124.7",
32
+ "@tamagui/helpers": "1.124.7",
33
+ "@tamagui/normalize-css-color": "1.124.7",
34
+ "@tamagui/timer": "1.124.7",
35
+ "@tamagui/types": "1.124.7",
36
+ "@tamagui/use-did-finish-ssr": "1.124.7",
37
+ "@tamagui/use-event": "1.124.7",
38
+ "@tamagui/use-force-update": "1.124.7"
39
39
  },
40
40
  "peerDependencies": {
41
41
  "react": "*",
42
42
  "react-dom": "*"
43
43
  },
44
44
  "devDependencies": {
45
- "@tamagui/build": "1.124.5",
45
+ "@tamagui/build": "1.124.7",
46
46
  "@testing-library/react": "^16.1.0",
47
47
  "csstype": "^3.0.10",
48
48
  "react": "*",
@@ -210,7 +210,11 @@ const getSnapshotFrom = (
210
210
  }
211
211
 
212
212
  if (!name) {
213
- const next = lastState ?? parentState!
213
+ const next = lastState ?? parentState
214
+
215
+ if (!next) {
216
+ throw new Error(`No theme and no parent?`)
217
+ }
214
218
 
215
219
  if (needsUpdate && pendingUpdate) {
216
220
  const updated = { ...(parentState || lastState)! }