0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2025-01-20 21:32:31 -05:00

fix(console): fix ac chunky preview experience

fix ac preview render delay bug when switch between platforms
This commit is contained in:
simeng-li 2022-10-20 19:01:19 +08:00
parent 2e03d18c3e
commit 0797305fb2
No known key found for this signature in database
GPG key ID: 14EA7BB1541E8075

View file

@ -76,13 +76,13 @@ const usePreview = (context: Context): [boolean, PreviewConfig?] => {
};
(async () => {
await changeLanguage(language);
setTheme(mode);
setPlatform(platform);
setExperienceSettings(experienceSettings);
await changeLanguage(language);
})();
}, [isPreview, previewConfig, setExperienceSettings, setPlatform, setTheme]);