@tamagui/core 1.112.12 → 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 +6 -6
package/dist/native.js
CHANGED
|
@@ -3677,7 +3677,9 @@ If this is intended and you are using Tamagui without any themes, you can disabl
|
|
|
3677
3677
|
if (!theme) return {};
|
|
3678
3678
|
var config = (0, import_config.getConfig)();
|
|
3679
3679
|
function track(key) {
|
|
3680
|
-
keys && !keys.includes(key) && (keys.length ||
|
|
3680
|
+
keys && !keys.includes(key) && (keys.length || setTimeout(function() {
|
|
3681
|
+
themeManager == null || themeManager.selfUpdate();
|
|
3682
|
+
}), keys.push(key), process.env.NODE_ENV === "development" && debug && console.info(` \u{1F3A8} useTheme() tracking new key: ${key}`));
|
|
3681
3683
|
}
|
|
3682
3684
|
return new Proxy(theme, {
|
|
3683
3685
|
has(_, key) {
|
|
@@ -3779,7 +3781,7 @@ If this is intended and you are using Tamagui without any themes, you can disabl
|
|
|
3779
3781
|
(isNewTheme || getShouldUpdateTheme(themeManager)) && (activeThemeManagers.add(themeManager), setThemeState(createState));
|
|
3780
3782
|
var selfListenerDispose = themeManager.onChangeTheme(function(_a, _b, forced) {
|
|
3781
3783
|
forced && setThemeState(function(prev) {
|
|
3782
|
-
var next = createState(prev, forced
|
|
3784
|
+
var next = createState(prev, !!forced);
|
|
3783
3785
|
return next;
|
|
3784
3786
|
});
|
|
3785
3787
|
}, !0), disposeChangeListener = parentManager == null ? void 0 : parentManager.onChangeTheme(function(name, manager, forced) {
|