Skip to content

Commit e448322

Browse files
authored
closes #326 (#333)
fixes a race condition on data laders
1 parent 8bdd4cd commit e448322

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/dataloader.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -166,8 +166,8 @@ export abstract class Loader {
166166
}
167167
return outputPath;
168168
})();
169-
command.finally(() => runningCommands.delete(this.path)).catch(() => {});
170-
runningCommands.set(this.path, command);
169+
command.finally(() => runningCommands.delete(key)).catch(() => {});
170+
runningCommands.set(key, command);
171171
}
172172
effects.output.write(`${cyan("load")} ${this.path} ${faint("→")} `);
173173
const start = performance.now();

0 commit comments

Comments
 (0)