Post
Also, if you magically map one option to `system` and the other to either light/dark, you can end up in situations where a user switched back to βlightβ but the value `system` getting stored. If they then visit later during the day, they might see dark although they they set it to light earlier.
Indeed, that's why I only want to persist the value if the user explicitly toggled it. I usually keep a flag for that, if it's false we do listen to system changes.
1 repost2 likes
No replies yet.