You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey @kentcdodds 馃憢 On 07a355b removed the ability for the app to adapt to OS theme changes. If the user changes the OS theme, the app doesn't adapt anymore. Was this on purpose?
The text was updated successfully, but these errors were encountered:
You're right, that was a mistake. A fix has been pushed.
switching theme in the App does not change the value of CH-prefers-color-scheme
This is correct. That cookie value is only about what the user's prefers-color-scheme value is. That's the fallback value provided their preference is "system." Their preference is stored in the session.
when user log out the App removes the _session cookie and the theme revert back to system theme from CH-prefers-color-scheme value.
This is a good point. We should probably have a separate cookie for the user's color scheme preference. But it's not the same as CH-prefers-color-scheme. The distinction is important:
CH-prefers-color-scheme: The user's system color scheme preference
Our new cookie (maybe simply theme?): The user's preference for our app. When "system", we reference the CH-prefers-color-scheme value.
This So yes, this is a bug and should be fixed by adding a separate cookie for managing the theme. No need to sign it either. It can be a raw value.
Hey @kentcdodds 馃憢 On 07a355b removed the ability for the app to adapt to OS theme changes. If the user changes the OS theme, the app doesn't adapt anymore. Was this on purpose?
The text was updated successfully, but these errors were encountered: