@tamagui/core 1.79.6 → 1.79.8

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.
@@ -1838,7 +1838,7 @@ var require_useMedia_native = __commonJS({
1838
1838
  return listeners.add(subscriber), () => listeners.delete(subscriber);
1839
1839
  }
1840
1840
  function useMedia2(uid, componentContext) {
1841
- let internal = (0, import_react3.useRef)(), initialState = ((componentContext ? (0, import_useDisableSSR.getDisableSSR)(componentContext) : (0, import_useDisableSSR.useDisableSSR)()) ? mediaState2 : initState) || {}, state = (0, import_react3.useSyncExternalStore)(
1841
+ let internal = (0, import_react3.useRef)(), initialState = ((componentContext ? (0, import_useDisableSSR.getDisableSSR)(componentContext) : (0, import_useDisableSSR.useDisableSSR)()) || !import_constants2.isWeb ? mediaState2 : initState) || {}, state = (0, import_react3.useSyncExternalStore)(
1842
1842
  subscribe,
1843
1843
  () => {
1844
1844
  if (!internal.current)
@@ -4201,7 +4201,7 @@ var require_useTheme_native = __commonJS({
4201
4201
  if (forceShouldChange || next && !(forceUpdate !== !0 && !manager.getStateShouldChange(next, prevState)))
4202
4202
  return next;
4203
4203
  }
4204
- if (import_constants2.isServer || (0, import_react3.useLayoutEffect)(() => {
4204
+ if (import_constants2.isServer || (0, import_react3.useEffect)(() => {
4205
4205
  if (!themeManager)
4206
4206
  return;
4207
4207
  if (props.inverse && !mounted) {
@@ -4216,7 +4216,8 @@ var require_useTheme_native = __commonJS({
4216
4216
  forced && setThemeState((prev) => createState(prev, !0));
4217
4217
  }), disposeChangeListener = parentManager == null ? void 0 : parentManager.onChangeTheme(
4218
4218
  (name, manager, forced) => {
4219
- ((forced || (shouldUpdate == null ? void 0 : shouldUpdate()) || props.deopt || props["disable-child-theme"]) ?? !!(keys != null && keys.length || isNewTheme)) && setThemeState(createState);
4219
+ let force = forced || (shouldUpdate == null ? void 0 : shouldUpdate()) || props.deopt || props["disable-child-theme"];
4220
+ (force ?? !!(keys != null && keys.length || isNewTheme)) && setThemeState((prev) => createState(prev, force));
4220
4221
  },
4221
4222
  themeManager.id
4222
4223
  );