Skip to content

Commit ff91663

Browse files
committed
[fail] reset IsThisRendererActing correctly (#16042)
* [fail] reset IsThisRendererActing correctly I missed this in facebook/react#16039. I'd pointed at the wrong previous state, corrupting it in further use. This PR fixes that, and adds a test to make sure it doesn't happen again. * warn for unacted effects only in strict mode
1 parent fdec8c1 commit ff91663

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ReactTestRendererAct.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ function act(callback: () => Thenable) {
7272
actingUpdatesScopeDepth++;
7373
if (__DEV__) {
7474
previousIsSomeRendererActing = IsSomeRendererActing.current;
75-
previousIsThisRendererActing = IsSomeRendererActing.current;
75+
previousIsThisRendererActing = IsThisRendererActing.current;
7676
IsSomeRendererActing.current = true;
7777
IsThisRendererActing.current = true;
7878
}

0 commit comments

Comments
 (0)