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:
parent
2e03d18c3e
commit
0797305fb2
1 changed files with 2 additions and 2 deletions
|
@ -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]);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue