From ede11731599b4d1cd964aa3ceb9fe949a3e8cbf0 Mon Sep 17 00:00:00 2001 From: 2betop <2betop.cn@gmail.com> Date: Thu, 16 Jul 2020 10:22:31 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=B8=8B=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/factory.tsx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/factory.tsx b/src/factory.tsx index f32edfe6..9e75c0c0 100644 --- a/src/factory.tsx +++ b/src/factory.tsx @@ -954,17 +954,13 @@ export function render( options: RenderOptions = {}, pathPrefix: string = '' ): JSX.Element { - options = { - ...defaultOptions, - ...options - }; - const locale = props.locale || getDefaultLocale(); const translate = props.translate || makeTranslator(locale); let store = stores[options.session || 'global']; if (!store) { options = { + ...defaultOptions, ...options, fetcher: options.fetcher ? wrapFetcher(options.fetcher)