Skip to content

Commit b15c6a5

Browse files
committed
fix(): normalize default mode
1 parent d1dd687 commit b15c6a5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/hydrate/platform/bootstrap-hydrate.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,6 @@ export interface BootstrapHydrateResults {
170170
hydratedCount: number;
171171
hydratedComponents: {
172172
tag: string,
173-
mode: string | undefined
173+
mode: string
174174
}[];
175175
}

src/hydrate/platform/hydrate-component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export function hydrateComponent(win: Window, results: BootstrapHydrateResults,
2222
results.hydratedCount++;
2323

2424
const ref = getHostRef(elm);
25-
const modeName = ref.$modeName$;
25+
const modeName = !ref.$modeName$ ? '$' : ref.$modeName$;
2626
if (!results.hydratedComponents.some(c => c.tag === tagName && c.mode === modeName)) {
2727
results.hydratedComponents.push({
2828
tag: tagName,

0 commit comments

Comments
 (0)