We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1112ee5 commit 8c831d1Copy full SHA for 8c831d1
src/view-model/view-model.store.base.ts
@@ -311,14 +311,14 @@ export class ViewModelStoreBase<VMBase extends AnyViewModel = AnyViewModel>
311
312
const nextInstanceAttachedCount = attachedCount - 1;
313
314
- this.instanceAttachedCount.set(model.id, nextInstanceAttachedCount);
+ this.instanceAttachedCount.set(id, nextInstanceAttachedCount);
315
316
if (nextInstanceAttachedCount <= 0) {
317
if ('willUnmount' in model) {
318
model.willUnmount();
319
}
320
321
- this.instanceAttachedCount.delete(model.id);
+ this.instanceAttachedCount.delete(id);
322
this.viewModels.delete(id);
323
this.dettachVMConstructor(model);
324
0 commit comments