Skip to content
This repository was archived by the owner on Dec 30, 2022. It is now read-only.

Commit 3b8b887

Browse files
authored
fix(ssr): allow component without mixins to be extended (#1127)
This can't be tested afaict because we need `forceIsServerMixin` in the test. discovered while debugging #1125
1 parent 51aadf0 commit 3b8b887

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/util/createServerRootMixin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ function defaultCloneComponent(componentInstance, { mixins = [] } = {}) {
4141

4242
if (isVue3) {
4343
const appOptions = Object.assign({}, componentInstance.$options, options);
44-
appOptions.mixins = [...mixins, ...appOptions.mixins];
44+
appOptions.mixins = [...mixins, ...(appOptions.mixins || [])];
4545
app = createSSRApp(appOptions);
4646
if (componentInstance.$router) {
4747
app.use(componentInstance.$router);

0 commit comments

Comments
 (0)