We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 69a4c4b commit c064440Copy full SHA for c064440
src/disableActEnvironment.ts
@@ -31,6 +31,9 @@ const dispose: typeof Symbol.dispose =
31
*
32
* cleanup();
33
* })
34
+ *
35
+ * For more context on what `act` is and why you shouldn't use it in renderStream tests,
36
+ * https://github.com/reactwg/react-18/discussions/102 is probably the best resource we have.
37
*/
38
export function disableActEnvironment(): {cleanup: () => void} & Disposable {
39
const anyThis = globalThis as any as {IS_REACT_ACT_ENVIRONMENT?: boolean}
0 commit comments