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 4401bf8 commit b578e96Copy full SHA for b578e96
test/integration/server-rendering.spec.js
@@ -1,3 +1,10 @@
1
+/**
2
+ * @jest-environment node
3
+ * Set this so that `window` is undefined to correctly mimic a Node SSR scenario.
4
+ * That allows connectAdvanced to fall back to `useEffect` instead of `useLayoutEffect`
5
+ * to avoid ugly console warnings when used with SSR.
6
+ */
7
+
8
/*eslint-disable react/prop-types*/
9
10
import React from 'react'
0 commit comments