We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8a8e318 commit c95cebcCopy full SHA for c95cebc
src/devtools/devtools.tsx
@@ -153,11 +153,13 @@ export function ReactQueryDevtools({
153
154
run()
155
156
- window.addEventListener('resize', run)
+ if (typeof window !== 'undefined') {
157
+ window.addEventListener('resize', run)
158
- return () => {
159
- window.removeEventListener('resize', run)
160
- rootRef.current.parentElement.style.paddingBottom = previousValue
+ return () => {
+ window.removeEventListener('resize', run)
161
+ rootRef.current.parentElement.style.paddingBottom = previousValue
162
+ }
163
}
164
165
}, [isResolvedOpen])
0 commit comments