File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
src/client/reactive/active-expression-rewriting Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -404,15 +404,17 @@ const DependenciesToAExprs = {
404404
405405 disconnectAllForAExpr ( aexpr ) {
406406 const location = aexpr . meta ( ) . get ( "location" ) ;
407- if ( location && location . file && this . _AEsPerFile . has ( location . file ) ) {
408- this . _AEsPerFile . get ( location . file ) . delete ( aexpr ) ;
407+ if ( location && location . file ) {
408+ DebuggingCache . updateFiles ( [ location . file ] ) ;
409+ if ( this . _AEsPerFile . has ( location . file ) ) {
410+ this . _AEsPerFile . get ( location . file ) . delete ( aexpr ) ;
411+ }
409412 }
410413 const deps = this . getDepsForAExpr ( aexpr ) ;
411414 this . _depsToAExprs . removeAllLeftFor ( aexpr ) ;
412415 deps . forEach ( dep => dep . updateTracking ( ) ) ;
413416
414417 // Track affected files
415- DebuggingCache . updateFiles ( [ location . file ] ) ;
416418 for ( const dep of DependenciesToAExprs . getDepsForAExpr ( aexpr ) ) {
417419 for ( const hook of HooksToDependencies . getHooksForDep ( dep ) ) {
418420 hook . getLocations ( ) . then ( locations => DebuggingCache . updateFiles ( locations . map ( loc => loc . file ) ) ) ;
You can’t perform that action at this time.
0 commit comments