Skip to content

Commit e3c78ba

Browse files
emmaling27Convex, Inc.
authored and
Convex, Inc.
committed
Add component unmounted state to the dashboard (#28835)
GitOrigin-RevId: 6942c5663cdf61a2d26fadb584eb0d88e8e64a94
1 parent 2b5df58 commit e3c78ba

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

npm-packages/system-udfs/convex/_system/frontend/components.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ export const list = queryPrivateSystem({
3333
name: doc.name,
3434
path: computeIdToPath(doc),
3535
args: Object.fromEntries(doc.args ?? []),
36+
state: doc.state ?? "active",
3637
}));
3738
},
3839
});

npm-packages/system-udfs/convex/schema.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,7 @@ export default defineSchema({
252252
parent: v.union(v.id("_components"), v.null()),
253253
name: v.union(v.string(), v.null()),
254254
args: v.union(v.array(v.any()), v.null()),
255+
state: v.optional(v.union(v.literal("active"), v.literal("unmounted"))),
255256
}),
256257
_modules: defineTable({
257258
path: v.string(),

0 commit comments

Comments
 (0)