Skip to content

Commit 3b3bc1d

Browse files
committed
AEDebugging_ Fix tests
SQUASHED: AUTO-COMMIT-src-client-reactive-active-expression-rewriting-active-expression-rewriting.js,
1 parent cfcdeb7 commit 3b3bc1d

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/client/reactive/active-expression-rewriting/active-expression-rewriting.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff 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)));

0 commit comments

Comments
 (0)