tamagui 1.112.13 → 1.112.14
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 +4 -2
- package/dist/native.js.map +1 -1
- package/dist/test.native.js +4 -2
- package/dist/test.native.js.map +1 -1
- package/package.json +54 -54
package/dist/native.js
CHANGED
|
@@ -3819,7 +3819,9 @@ If this is intended and you are using Tamagui without any themes, you can disabl
|
|
|
3819
3819
|
if (!theme) return {};
|
|
3820
3820
|
var config = (0, import_config.getConfig)();
|
|
3821
3821
|
function track(key) {
|
|
3822
|
-
keys && !keys.includes(key) && (keys.length ||
|
|
3822
|
+
keys && !keys.includes(key) && (keys.length || setTimeout(function() {
|
|
3823
|
+
themeManager == null || themeManager.selfUpdate();
|
|
3824
|
+
}), keys.push(key), process.env.NODE_ENV === "development" && debug && console.info(` \u{1F3A8} useTheme() tracking new key: ${key}`));
|
|
3823
3825
|
}
|
|
3824
3826
|
return new Proxy(theme, {
|
|
3825
3827
|
has(_, key) {
|
|
@@ -3921,7 +3923,7 @@ If this is intended and you are using Tamagui without any themes, you can disabl
|
|
|
3921
3923
|
(isNewTheme || getShouldUpdateTheme(themeManager)) && (activeThemeManagers.add(themeManager), setThemeState(createState));
|
|
3922
3924
|
var selfListenerDispose = themeManager.onChangeTheme(function(_a, _b, forced) {
|
|
3923
3925
|
forced && setThemeState(function(prev) {
|
|
3924
|
-
var next = createState(prev, forced
|
|
3926
|
+
var next = createState(prev, !!forced);
|
|
3925
3927
|
return next;
|
|
3926
3928
|
});
|
|
3927
3929
|
}, !0), disposeChangeListener = parentManager == null ? void 0 : parentManager.onChangeTheme(function(name, manager, forced) {
|