@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tanstack/react-query-devtools",
3
- "version": "4.20.3",
3
+ "version": "4.20.4",
4
4
  "description": "Developer tools to interact with and visualize the TanStack/react-query cache",
5
5
  "author": "tannerlinsley",
6
6
  "license": "MIT",
@@ -46,7 +46,7 @@
46
46
  "react-dom": "^18.2.0",
47
47
  "react-dom-17": "npm:react-dom@^17.0.2",
48
48
  "react-error-boundary": "^3.1.4",
49
- "@tanstack/react-query": "4.20.3"
49
+ "@tanstack/react-query": "4.20.4"
50
50
  },
51
51
  "dependencies": {
52
52
  "@tanstack/match-sorter-utils": "^8.7.0",
@@ -56,7 +56,7 @@
56
56
  "peerDependencies": {
57
57
  "react": "^16.8.0 || ^17.0.0 || ^18.0.0",
58
58
  "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0",
59
- "@tanstack/react-query": "4.20.3"
59
+ "@tanstack/react-query": "4.20.4"
60
60
  },
61
61
  "scripts": {
62
62
  "clean": "rm -rf ./build",
package/src/devtools.tsx CHANGED
@@ -244,6 +244,7 @@ export function ReactQueryDevtools({
244
244
  ref.removeEventListener('transitionend', handlePanelTransitionEnd)
245
245
  }
246
246
  }
247
+ return
247
248
  }, [isResolvedOpen])
248
249
 
249
250
  React.useEffect(() => {
@@ -296,6 +297,7 @@ export function ReactQueryDevtools({
296
297
  }
297
298
  }
298
299
  }
300
+ return
299
301
  }, [isResolvedOpen, panelPosition, devtoolsHeight, devtoolsWidth])
300
302
 
301
303
  const { style: panelStyle = {}, ...otherPanelProps } = panelProps
@@ -6,6 +6,7 @@ export default function useMediaQuery(query: string): boolean | undefined {
6
6
  if (typeof window !== 'undefined') {
7
7
  return window.matchMedia(query).matches
8
8
  }
9
+ return
9
10
  })
10
11
 
11
12
  // Watch for changes
@@ -26,6 +27,7 @@ export default function useMediaQuery(query: string): boolean | undefined {
26
27
  matcher.removeListener(onChange)
27
28
  }
28
29
  }
30
+ return
29
31
  }, [isMatch, query, setIsMatch])
30
32
 
31
33
  return isMatch