Add back wrongly removed Ephemeral.theme assignment (#6959)

This commit is contained in:
Elias Nahum 2023-01-12 10:58:05 +02:00 committed by GitHub
parent 5125db1d69
commit cab863d62f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -278,6 +278,7 @@ export function setThemeDefaults(theme: ExtendedTheme): Theme {
export const updateThemeIfNeeded = (theme: Theme, force = false) => {
const storedTheme = EphemeralStore.theme;
if (!deepEqual(theme, storedTheme) || force) {
EphemeralStore.theme = theme;
requestAnimationFrame(() => {
setNavigationStackStyles(theme);
});