From 7ec0cb98df1343a78f1b91de680fcf417e0acd7e Mon Sep 17 00:00:00 2001 From: Jinbao1001 Date: Thu, 14 Nov 2024 11:37:05 +0800 Subject: [PATCH] fix: || => ?? --- packages/preset-umi/src/features/tmpFiles/tmpFiles.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/preset-umi/src/features/tmpFiles/tmpFiles.ts b/packages/preset-umi/src/features/tmpFiles/tmpFiles.ts index f10bff3309a7..8966bf4b05a0 100644 --- a/packages/preset-umi/src/features/tmpFiles/tmpFiles.ts +++ b/packages/preset-umi/src/features/tmpFiles/tmpFiles.ts @@ -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, },