Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
set input event cells to be ephemeral
otherwise as they are frozen/readOnly, it breaks sync
  • Loading branch information
anotherjesse committed Feb 26, 2025
commit 4be053224380d55f2675b74ce00f65db3f55c6ec
2 changes: 2 additions & 0 deletions typescript/packages/common-runner/src/runner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,7 @@ function instantiateJavaScriptNode(
}

const inputsCell = getDoc(eventInputs, cause);
inputsCell.ephemeral = true;
inputsCell.freeze(); // Freezes the bindings, not aliased cells.

const frame = pushFrameFromCause(cause, {
Expand Down Expand Up @@ -374,6 +375,7 @@ function instantiateJavaScriptNode(
// Schedule the action to run when the inputs change

const inputsCell = getDoc(inputs);
inputsCell.ephemeral = true;
inputsCell.freeze(); // Freezes the bindings, not aliased cells.

let resultCell: DocImpl<any> | undefined;
Expand Down
Loading