Skip to content

Commit

Permalink
Add Remount to ComponentDiffType (#29563)
Browse files Browse the repository at this point in the history
Adds `Remount` variant to `ComponentDiffType`
![Screenshot 2024-09-04 at 5 18 01 PM](https://github.com/user-attachments/assets/b2ad5586-6a73-4039-8b31-0713026478b7)

GitOrigin-RevId: 5f9a5d234db39afe9b1219d9dd9cb6a4bfb3f311
  • Loading branch information
emmaling27 authored and Convex, Inc. committed Sep 5, 2024
1 parent 76fa726 commit 479cd8a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/cli/lib/components.ts
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,9 @@ function printDiff(
if (componentDiff.diffType.type === "unmount") {
logFinishedStep(ctx, `Unmounted component ${componentPath}.`);
}
if (componentDiff.diffType.type === "remount") {
logFinishedStep(ctx, `Remounted component ${componentPath}.`);
}
}
}

Expand Down
3 changes: 3 additions & 0 deletions src/cli/lib/deployApi/finishPush.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ export const componentDiffType = z.discriminatedUnion("type", [
looseObject({
type: z.literal("unmount"),
}),
looseObject({
type: z.literal("remount"),
}),
]);
export type ComponentDiffType = z.infer<typeof componentDiffType>;

Expand Down

0 comments on commit 479cd8a

Please sign in to comment.