@tamagui/core 1.85.10 → 1.85.11
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/dist/native.js +5 -5
- package/dist/native.js.map +1 -1
- package/dist/test.native.js +5 -5
- package/dist/test.native.js.map +1 -1
- package/package.json +6 -6
package/dist/native.js
CHANGED
|
@@ -2208,11 +2208,11 @@ If this is intended and you are using Tamagui without any themes, you can disabl
|
|
|
2208
2208
|
}
|
|
2209
2209
|
return !1;
|
|
2210
2210
|
}
|
|
2211
|
-
var activeThemeManagers = /* @__PURE__ */ new Set(),
|
|
2212
|
-
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
|
|
2211
|
+
var activeThemeManagers = /* @__PURE__ */ new Set(), _uidToManager = /* @__PURE__ */ new WeakMap(), _idToUID = {}, getId = (id) => _idToUID[id], getThemeManager = (id) => _uidToManager.get(getId(id)), registerThemeManager = (t) => {
|
|
2212
|
+
if (!_idToUID[t.id]) {
|
|
2213
|
+
let id = _idToUID[t.id] = {};
|
|
2214
|
+
_uidToManager.set(id, t);
|
|
2215
|
+
}
|
|
2216
2216
|
}, useChangeThemeEffect = (props, isRoot = !1, keys, shouldUpdate) => {
|
|
2217
2217
|
let { disable } = props, parentManagerId = (0, import_react3.useContext)(import_ThemeManagerContext.ThemeManagerIDContext), parentManager = getThemeManager(parentManagerId);
|
|
2218
2218
|
if (!isRoot && !parentManager || disable)
|