@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.js
CHANGED
|
@@ -124,6 +124,8 @@ function useMediaQuery(query) {
|
|
|
124
124
|
if (typeof window !== 'undefined') {
|
|
125
125
|
return window.matchMedia(query).matches;
|
|
126
126
|
}
|
|
127
|
+
|
|
128
|
+
return;
|
|
127
129
|
}); // Watch for changes
|
|
128
130
|
|
|
129
131
|
React__namespace.useEffect(() => {
|
|
@@ -142,6 +144,8 @@ function useMediaQuery(query) {
|
|
|
142
144
|
matcher.removeListener(onChange);
|
|
143
145
|
};
|
|
144
146
|
}
|
|
147
|
+
|
|
148
|
+
return;
|
|
145
149
|
}, [isMatch, query, setIsMatch]);
|
|
146
150
|
return isMatch;
|
|
147
151
|
}
|
|
@@ -805,6 +809,8 @@ function ReactQueryDevtools$1({
|
|
|
805
809
|
ref.removeEventListener('transitionend', handlePanelTransitionEnd);
|
|
806
810
|
};
|
|
807
811
|
}
|
|
812
|
+
|
|
813
|
+
return;
|
|
808
814
|
}, [isResolvedOpen]);
|
|
809
815
|
React__namespace.useEffect(() => {
|
|
810
816
|
var _rootRef$current;
|
|
@@ -853,6 +859,8 @@ function ReactQueryDevtools$1({
|
|
|
853
859
|
};
|
|
854
860
|
}
|
|
855
861
|
}
|
|
862
|
+
|
|
863
|
+
return;
|
|
856
864
|
}, [isResolvedOpen, panelPosition, devtoolsHeight, devtoolsWidth]);
|
|
857
865
|
const {
|
|
858
866
|
style: panelStyle = {},
|