Skip to content

Commit

Permalink
don't skip execution for empty cells
Browse files Browse the repository at this point in the history
fixes #47

I think this was code leftover from a refactor (at one point I wanted to trigger execution for dependent cells without taking unsubmitted cell contents).
  • Loading branch information
Jake Donham committed Jul 22, 2024
1 parent af640ff commit d5e4a46
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions packages/server/src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export class Client {
path: string;
cellId: string;
language: string;
code?: string;
code: string;
}[],
force: boolean,
executeDirtyCells: boolean
Expand All @@ -44,9 +44,7 @@ export class Client {
for (const { path, cellId, language, code } of cells) {
const ext = extOfLanguage(language);
const id = `${path}-cellId=${cellId}.${ext}`;
if (code) {
this.cells.set(id, { cellId, code, language });
}
this.cells.set(id, { cellId, code, language });

this.runtime.invalidateServerModule(id);
this.runtime.handleHMRUpdate(id);
Expand Down
2 changes: 1 addition & 1 deletion packages/server/src/rpc-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export type ServerFunctions = {
path: string;
cellId: string;
language: string;
code?: string;
code: string;
}[],
force: boolean,
executeDirtyCells: boolean
Expand Down

0 comments on commit d5e4a46

Please sign in to comment.