Skip to content

Commit b64880f

Browse files
committed
fix: Reuse coordinator
1 parent 577977d commit b64880f

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

‎lib/demo.ts‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -128,10 +128,7 @@ if (import.meta.hot) {
128128
// @ts-expect-error - HMR types not working with Deno
129129
import.meta.hot.accept("./clients/DataTable.ts", async ({ datatable }) => {
130130
coordinator.disconnect(dt);
131-
dt = await datatable("df", {
132-
coordinator: dt.coordinator,
133-
height: 500,
134-
});
131+
dt = await datatable("df", { coordinator, height: 500 });
135132
table.replaceChildren();
136133
table.appendChild(dt.node());
137134
});

0 commit comments

Comments
 (0)