diff --git a/example/convex/checkboxes.ts b/example/convex/checkboxes.ts index a7b8016..4e48118 100644 --- a/example/convex/checkboxes.ts +++ b/example/convex/checkboxes.ts @@ -96,31 +96,6 @@ export const toggle = mutation({ handler: toggleHandler, }); -export const seed = internalMutation({ - args: {}, - handler: async (ctx) => { - const boxes = await ctx.db - .query("checkboxes") - .withIndex("idx") - .order("asc") - .collect(); - // Clear the table. - for (const box of boxes) { - await ctx.db.delete(box._id); - } - - const bytes = new Uint8Array(BOXES_PER_DOCUMENT / 8); - - // Reset the table. - for (let i = 0; i < NUM_DOCUMENTS; i++) { - await ctx.db.insert("checkboxes", { - idx: i, - boxes: bytes.buffer, - }); - } - }, -}); - export const toggleRandom = internalMutation({ args: {}, handler: async (ctx) => { diff --git a/example/package.json b/example/package.json index 752ba08..c9bc76f 100644 --- a/example/package.json +++ b/example/package.json @@ -4,7 +4,7 @@ "type": "module", "version": "0.0.0", "scripts": { - "dev:backend": "convex dev --live-component-sources", + "dev:backend": "convex dev --live-component-sources --typecheck-components", "dev:frontend": "vite", "dev": "npm-run-all --parallel dev:backend dev:frontend", "logs": "convex logs",