File tree Expand file tree Collapse file tree 1 file changed +0
-18
lines changed
packages/runtime-core/src Expand file tree Collapse file tree 1 file changed +0
-18
lines changed Original file line number Diff line number Diff line change @@ -2332,24 +2332,6 @@ function baseCreateRenderer(
2332
2332
instance . isUnmounted = true
2333
2333
} , parentSuspense )
2334
2334
2335
- // A component with async dep inside a pending suspense is unmounted before
2336
- // its async dep resolves. This should remove the dep from the suspense, and
2337
- // cause the suspense to resolve immediately if that was the last dep.
2338
- if (
2339
- __FEATURE_SUSPENSE__ &&
2340
- parentSuspense &&
2341
- parentSuspense . pendingBranch &&
2342
- ! parentSuspense . isUnmounted &&
2343
- instance . asyncDep &&
2344
- ! instance . asyncResolved &&
2345
- instance . suspenseId === parentSuspense . pendingId
2346
- ) {
2347
- parentSuspense . deps --
2348
- if ( parentSuspense . deps === 0 ) {
2349
- parentSuspense . resolve ( )
2350
- }
2351
- }
2352
-
2353
2335
if ( __DEV__ || __FEATURE_PROD_DEVTOOLS__ ) {
2354
2336
devtoolsComponentRemoved ( instance )
2355
2337
}
You can’t perform that action at this time.
0 commit comments