Skip to content

Commit 55d3584

Browse files
authored
Fix blocking functions in the emulator when using multiple codebases (#6504)
* fix emulator bug * Add changelog entry
1 parent 5bca9b5 commit 55d3584

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
- Fix blocking functions in the emulator when using multiple codebases (#6504).

src/emulator/functionsEmulator.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -566,8 +566,6 @@ export class FunctionsEmulator implements EmulatorInstance {
566566
} else {
567567
this.workerPools[emulatableBackend.codebase].refresh();
568568
}
569-
// reset blocking functions config for reloads
570-
this.blockingFunctionsConfig = {};
571569

572570
// When force is true we set up all triggers, otherwise we only set up
573571
// triggers which have a unique function name
@@ -1436,6 +1434,8 @@ export class FunctionsEmulator implements EmulatorInstance {
14361434

14371435
async reloadTriggers() {
14381436
this.triggerGeneration++;
1437+
// reset blocking functions config for reloads
1438+
this.blockingFunctionsConfig = {};
14391439
for (const backend of this.args.emulatableBackends) {
14401440
await this.loadTriggers(backend);
14411441
}

0 commit comments

Comments
 (0)