After turning off Dark Theme in the Settings page and refreshing the page via the browser, data-theme="Dark" is always added back to <body>.
I'm looking for a way to manage themes within a Blazor app, and was looking here for an example that doesn't flash the light theme when refreshing the page, for which this app is successful. However, I'm not sure if the reason it is successful is because of the issue in the first paragraph.
After turning off Dark Theme in the Settings page and refreshing the page via the browser,
data-theme="Dark"
is always added back to<body>
.I'm looking for a way to manage themes within a Blazor app, and was looking here for an example that doesn't flash the light theme when refreshing the page, for which this app is successful. However, I'm not sure if the reason it is successful is because of the issue in the first paragraph.