( prevActQueue: null | Array<RendererTask>, prevActScopeDepth: number, )
| 254 | } |
| 255 | |
| 256 | function popActScope( |
| 257 | prevActQueue: null | Array<RendererTask>, |
| 258 | prevActScopeDepth: number, |
| 259 | ) { |
| 260 | if (__DEV__) { |
| 261 | if (prevActScopeDepth !== actScopeDepth - 1) { |
| 262 | console.error( |
| 263 | 'You seem to have overlapping act() calls, this is not supported. ' + |
| 264 | 'Be sure to await previous act() calls before making a new one. ', |
| 265 | ); |
| 266 | } |
| 267 | actScopeDepth = prevActScopeDepth; |
| 268 | } |
| 269 | } |
| 270 | |
| 271 | function recursivelyFlushAsyncActWork<T>( |
| 272 | returnValue: T, |