Skip to content

Commit

Permalink
fix: undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
Jinbao1001 committed Nov 14, 2024
1 parent 7ec0cb9 commit 1c4818e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/preset-umi/src/features/tmpFiles/tmpFiles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ declare module '*.txt' {
__INTERNAL_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,
),
hydrate: !!ssrConfig,
useStream: ssrConfig.useStream ?? true,
useStream: ssrConfig?.useStream ?? true,
reactRouter5Compat: !!api.config.reactRouter5Compat,
loadingComponent: api.appData.globalLoading,
},
Expand Down Expand Up @@ -565,7 +565,7 @@ if (process.env.NODE_ENV === 'development') {
),
mountElementId,
basename: api.config.base,
useStream: ssrConfig.useStream ?? true,
useStream: ssrConfig?.useStream ?? true,
},
});
}
Expand Down

0 comments on commit 1c4818e

Please sign in to comment.