@tanstack/react-query-devtools
Advanced tools
Comparing version 4.3.0-beta.5 to 4.3.0-beta.7
@@ -155,3 +155,2 @@ /** | ||
const isServer$1 = typeof window === 'undefined'; | ||
function getQueryStatusColor({ | ||
@@ -192,3 +191,3 @@ queryState, | ||
const isMounted = React__namespace.useCallback(() => mountedRef.current, []); | ||
React__namespace[isServer$1 ? 'useEffect' : 'useLayoutEffect'](() => { | ||
React__namespace.useEffect(() => { | ||
mountedRef.current = true; | ||
@@ -517,3 +516,2 @@ return () => { | ||
const isServer = typeof window === 'undefined'; | ||
function ReactQueryDevtools$1({ | ||
@@ -599,3 +597,3 @@ initialIsOpen, | ||
}, [isResolvedOpen]); | ||
React__namespace[isServer ? 'useEffect' : 'useLayoutEffect'](() => { | ||
React__namespace.useEffect(() => { | ||
if (isResolvedOpen) { | ||
@@ -602,0 +600,0 @@ var _rootRef$current, _rootRef$current$pare; |
@@ -155,3 +155,2 @@ /** | ||
const isServer$1 = typeof window === 'undefined'; | ||
function getQueryStatusColor({ | ||
@@ -192,3 +191,3 @@ queryState, | ||
const isMounted = React__namespace.useCallback(() => mountedRef.current, []); | ||
React__namespace[isServer$1 ? 'useEffect' : 'useLayoutEffect'](() => { | ||
React__namespace.useEffect(() => { | ||
mountedRef.current = true; | ||
@@ -517,3 +516,2 @@ return () => { | ||
const isServer = typeof window === 'undefined'; | ||
function ReactQueryDevtools$1({ | ||
@@ -599,3 +597,3 @@ initialIsOpen, | ||
}, [isResolvedOpen]); | ||
React__namespace[isServer ? 'useEffect' : 'useLayoutEffect'](() => { | ||
React__namespace.useEffect(() => { | ||
if (isResolvedOpen) { | ||
@@ -602,0 +600,0 @@ var _rootRef$current, _rootRef$current$pare; |
import * as React from 'react'; | ||
import type { Query } from '@tanstack/react-query'; | ||
import { Theme } from './theme'; | ||
export declare const isServer: boolean; | ||
declare type StyledComponent<T> = T extends 'button' ? React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement> : T extends 'input' ? React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement> : T extends 'select' ? React.DetailedHTMLProps<React.SelectHTMLAttributes<HTMLSelectElement>, HTMLSelectElement> : T extends keyof HTMLElementTagNameMap ? React.HTMLAttributes<HTMLElementTagNameMap[T]> : never; | ||
@@ -6,0 +5,0 @@ export declare function getQueryStatusColor({ queryState, observerCount, isStale, theme, }: { |
{ | ||
"name": "@tanstack/react-query-devtools", | ||
"version": "4.3.0-beta.5", | ||
"version": "4.3.0-beta.7", | ||
"description": "TODO", | ||
@@ -21,2 +21,7 @@ "author": "tannerlinsley", | ||
}, | ||
"./production": { | ||
"types": "./build/lib/index.d.ts", | ||
"import": "./build/lib/index.prod.mjs", | ||
"default": "./build/lib/index.prod.js" | ||
}, | ||
"./build/lib/index.prod.js": { | ||
@@ -23,0 +28,0 @@ "types": "./build/lib/index.d.ts", |
@@ -7,4 +7,2 @@ import * as React from 'react' | ||
export const isServer = typeof window === 'undefined' | ||
type StyledComponent<T> = T extends 'button' | ||
@@ -108,3 +106,3 @@ ? React.DetailedHTMLProps< | ||
React[isServer ? 'useEffect' : 'useLayoutEffect'](() => { | ||
React.useEffect(() => { | ||
mountedRef.current = true | ||
@@ -111,0 +109,0 @@ return () => { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
950323
9650