Lazy plugs (#596)

* Manifest caching and lazy loading of plug workers
* Fixes #546 Plug unloading after time out
This commit is contained in:
Zef Hemel
2023-12-06 18:44:48 +01:00
committed by GitHub
parent 8451680c01
commit 8527528af4
16 changed files with 226 additions and 67 deletions
+7 -1
View File
@@ -114,7 +114,13 @@ export class EventedSpacePrimitives implements SpacePrimitives {
meta,
);
if (!selfUpdate) {
await this.dispatchEvent("file:changed", name, true);
await this.dispatchEvent(
"file:changed",
name,
true,
undefined,
newMeta.lastModified,
);
}
this.spaceSnapshot[name] = newMeta.lastModified;