Synchronizes application theme with localStorage preference
Called at application startup to restore user preference
If no preference is stored, defaults to system theme
Returns Promise<void>
Promise resolving when theme synchronization is complete
Source
exportasyncfunctionsyncThemeWithLocal(): Promise<void> { const { local } = awaitgetCurrentTheme(); if (!local) { setTheme("system"); return; }
Synchronizes application theme with localStorage preference Called at application startup to restore user preference If no preference is stored, defaults to system theme