@tanstack/react-query-devtools 4.20.3 → 4.20.4
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/build/lib/devtools.esm.js +4 -0
- package/build/lib/devtools.esm.js.map +1 -1
- package/build/lib/devtools.js +4 -0
- package/build/lib/devtools.js.map +1 -1
- package/build/lib/devtools.mjs +4 -0
- package/build/lib/devtools.mjs.map +1 -1
- package/build/lib/index.prod.esm.js +8 -0
- package/build/lib/index.prod.esm.js.map +1 -1
- package/build/lib/index.prod.js +8 -0
- package/build/lib/index.prod.js.map +1 -1
- package/build/lib/index.prod.mjs +8 -0
- package/build/lib/index.prod.mjs.map +1 -1
- package/build/lib/useMediaQuery.esm.js +4 -0
- package/build/lib/useMediaQuery.esm.js.map +1 -1
- package/build/lib/useMediaQuery.js +4 -0
- package/build/lib/useMediaQuery.js.map +1 -1
- package/build/lib/useMediaQuery.mjs +4 -0
- package/build/lib/useMediaQuery.mjs.map +1 -1
- package/build/umd/index.development.js +8 -0
- package/build/umd/index.development.js.map +1 -1
- package/package.json +3 -3
- package/src/devtools.tsx +2 -0
- package/src/useMediaQuery.ts +2 -0
package/build/lib/index.prod.mjs
CHANGED
|
@@ -97,6 +97,8 @@ function useMediaQuery(query) {
|
|
|
97
97
|
if (typeof window !== 'undefined') {
|
|
98
98
|
return window.matchMedia(query).matches;
|
|
99
99
|
}
|
|
100
|
+
|
|
101
|
+
return;
|
|
100
102
|
}); // Watch for changes
|
|
101
103
|
|
|
102
104
|
React.useEffect(() => {
|
|
@@ -115,6 +117,8 @@ function useMediaQuery(query) {
|
|
|
115
117
|
matcher.removeListener(onChange);
|
|
116
118
|
};
|
|
117
119
|
}
|
|
120
|
+
|
|
121
|
+
return;
|
|
118
122
|
}, [isMatch, query, setIsMatch]);
|
|
119
123
|
return isMatch;
|
|
120
124
|
}
|
|
@@ -778,6 +782,8 @@ function ReactQueryDevtools$1({
|
|
|
778
782
|
ref.removeEventListener('transitionend', handlePanelTransitionEnd);
|
|
779
783
|
};
|
|
780
784
|
}
|
|
785
|
+
|
|
786
|
+
return;
|
|
781
787
|
}, [isResolvedOpen]);
|
|
782
788
|
React.useEffect(() => {
|
|
783
789
|
var _rootRef$current;
|
|
@@ -826,6 +832,8 @@ function ReactQueryDevtools$1({
|
|
|
826
832
|
};
|
|
827
833
|
}
|
|
828
834
|
}
|
|
835
|
+
|
|
836
|
+
return;
|
|
829
837
|
}, [isResolvedOpen, panelPosition, devtoolsHeight, devtoolsWidth]);
|
|
830
838
|
const {
|
|
831
839
|
style: panelStyle = {},
|