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 7a1cbdd commit 176a10fCopy full SHA for 176a10f
packages/runner/src/cell.ts
@@ -586,7 +586,6 @@ export class CellImpl<T> implements ICell<T>, IStreamable<T> {
586
587
return new Promise((resolve) => {
588
let result: Readonly<T>;
589
- let cancel: Cancel | undefined;
590
591
const action: Action = (tx) => {
592
// Read the value inside the effect - this ensures dependencies are pulled
@@ -600,7 +599,7 @@ export class CellImpl<T> implements ICell<T>, IStreamable<T> {
600
599
tx.commit();
601
602
// Subscribe as an effect with scheduleImmediately so it runs in the next cycle
603
- cancel = this.runtime.scheduler.subscribe(action, log, {
+ const cancel = this.runtime.scheduler.subscribe(action, log, {
604
isEffect: true,
605
scheduleImmediately: true,
606
});
0 commit comments