Skip to content

Commit c064440

Browse files
committed
add comment
1 parent 69a4c4b commit c064440

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/disableActEnvironment.ts

+3
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ const dispose: typeof Symbol.dispose =
3131
*
3232
* cleanup();
3333
* })
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.
3437
*/
3538
export function disableActEnvironment(): {cleanup: () => void} & Disposable {
3639
const anyThis = globalThis as any as {IS_REACT_ACT_ENVIRONMENT?: boolean}

0 commit comments

Comments
 (0)