@@ -24,7 +24,7 @@ if (__DEV__) {
24
24
) {
25
25
__REACT_DEVTOOLS_GLOBAL_HOOK__ . registerInternalModuleStart ( new Error ( ) ) ;
26
26
}
27
- var ReactVersion = "19.0.0-www-modern-e4b79a21 " ;
27
+ var ReactVersion = "19.0.0-www-modern-cf1ffacc " ;
28
28
29
29
// ATTENTION
30
30
// When adding new symbols to this file,
@@ -404,7 +404,7 @@ if (__DEV__) {
404
404
enableRenderableContext = dynamicFeatureFlags . enableRenderableContext ,
405
405
enableRefAsProp = dynamicFeatureFlags . enableRefAsProp ;
406
406
// On WWW, true is used for a new modern build.
407
- var disableLegacyMode = false ;
407
+ var disableLegacyMode = true ;
408
408
409
409
/*
410
410
* The `'' + value` pattern (used in perf-sensitive code) throws for Symbol
@@ -3272,19 +3272,12 @@ if (__DEV__) {
3272
3272
// `act` calls can be nested.
3273
3273
//
3274
3274
// If we're already inside an `act` scope, reuse the existing queue.
3275
- var prevIsBatchingLegacy = ReactCurrentActQueue . isBatchingLegacy ;
3275
+ var prevIsBatchingLegacy = false ;
3276
3276
var prevActQueue = ReactCurrentActQueue . current ;
3277
3277
var prevActScopeDepth = actScopeDepth ;
3278
3278
actScopeDepth ++ ;
3279
3279
var queue = ( ReactCurrentActQueue . current =
3280
3280
prevActQueue !== null ? prevActQueue : [ ] ) ; // Used to reproduce behavior of `batchedUpdates` in legacy mode. Only
3281
- // set to `true` while the given callback is executed, not for updates
3282
- // triggered during an async event, because this is how the legacy
3283
- // implementation of `act` behaved.
3284
-
3285
- {
3286
- ReactCurrentActQueue . isBatchingLegacy = true ;
3287
- }
3288
3281
3289
3282
var result ; // This tracks whether the `act` call is awaited. In certain cases, not
3290
3283
// awaiting it is a mistake, so we will detect that and warn.
@@ -3295,9 +3288,7 @@ if (__DEV__) {
3295
3288
// Reset this to `false` right before entering the React work loop. The
3296
3289
// only place we ever read this fields is just below, right after running
3297
3290
// the callback. So we don't need to reset after the callback runs.
3298
- if ( ! disableLegacyMode ) {
3299
- ReactCurrentActQueue . didScheduleLegacyUpdate = false ;
3300
- }
3291
+ if ( ! disableLegacyMode ) ;
3301
3292
3302
3293
result = callback ( ) ;
3303
3294
var didScheduleLegacyUpdate = ! disableLegacyMode
@@ -3313,9 +3304,7 @@ if (__DEV__) {
3313
3304
// that's how it worked before version 18. Yes, it's confusing! We should
3314
3305
// delete legacy mode!!
3315
3306
3316
- if ( ! disableLegacyMode ) {
3317
- ReactCurrentActQueue . isBatchingLegacy = prevIsBatchingLegacy ;
3318
- }
3307
+ if ( ! disableLegacyMode ) ;
3319
3308
} catch ( error ) {
3320
3309
// `isBatchingLegacy` gets reset using the regular stack, not the async
3321
3310
// one used to track `act` scopes. Why, you may be wondering? Because
@@ -3325,10 +3314,6 @@ if (__DEV__) {
3325
3314
}
3326
3315
3327
3316
if ( ReactCurrentActQueue . thrownErrors . length > 0 ) {
3328
- {
3329
- ReactCurrentActQueue . isBatchingLegacy = prevIsBatchingLegacy ;
3330
- }
3331
-
3332
3317
popActScope ( prevActQueue , prevActScopeDepth ) ;
3333
3318
var thrownError = aggregateErrors ( ReactCurrentActQueue . thrownErrors ) ;
3334
3319
ReactCurrentActQueue . thrownErrors . length = 0 ;
0 commit comments