@tldraw/editor 3.13.0-canary.c7e3df3a9530 → 3.13.0-canary.cb6b7a41c175

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist-cjs/index.js CHANGED
@@ -361,7 +361,7 @@ function debugEnableLicensing() {
361
361
  }
362
362
  (0, import_utils.registerTldrawLibraryVersion)(
363
363
  "@tldraw/editor",
364
- "3.13.0-canary.c7e3df3a9530",
364
+ "3.13.0-canary.cb6b7a41c175",
365
365
  "cjs"
366
366
  );
367
367
  //# sourceMappingURL=index.js.map
@@ -424,6 +424,7 @@ class Editor extends (_a = import_eventemitter3.default, _getIsShapeHiddenCache_
424
424
  ) : getShapeVisibility;
425
425
  this.options = { ...import_options.defaultTldrawOptions, ...options };
426
426
  this.store = store;
427
+ this.disposables.add(this.store.dispose.bind(this.store));
427
428
  this.history = new import_HistoryManager.HistoryManager({
428
429
  store,
429
430
  annotateError: (error) => {
@@ -835,7 +836,6 @@ class Editor extends (_a = import_eventemitter3.default, _getIsShapeHiddenCache_
835
836
  dispose() {
836
837
  this.disposables.forEach((dispose) => dispose());
837
838
  this.disposables.clear();
838
- this.store.dispose();
839
839
  this.isDisposed = true;
840
840
  }
841
841
  getShapeUtil(arg) {