From cd01f4166f4c78c102245ffa8a261808e70d1419 Mon Sep 17 00:00:00 2001 From: simeng-li Date: Fri, 21 Oct 2022 16:11:16 +0800 Subject: [PATCH] fix(ui): fix prefiew render bug page should render after language updates --- packages/ui/src/hooks/use-preview.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/ui/src/hooks/use-preview.ts b/packages/ui/src/hooks/use-preview.ts index b18b0c010..6cb656f67 100644 --- a/packages/ui/src/hooks/use-preview.ts +++ b/packages/ui/src/hooks/use-preview.ts @@ -80,9 +80,9 @@ const usePreview = (context: Context): [boolean, PreviewConfig?] => { setPlatform(platform); - setExperienceSettings(experienceSettings); - await changeLanguage(language); + + setExperienceSettings(experienceSettings); })(); }, [isPreview, previewConfig, setExperienceSettings, setPlatform, setTheme]);