Replies: 1 comment 19 replies
-
@nhwilly thanks for contacting us and explaining this issue. |
Beta Was this translation helpful? Give feedback.
19 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am doing some theme work and I think I have it all figured out for my app's needs. However, I noticed that there is a "flash" of the white page before the theme can be set.
It appears that
BitThemeManager
isn't ready to go until theOnAfterRenderAsync
is called. And that makes sense, since it needs JS and things need to settle down before I can use that.I came to BitUi from FluentUi and they had a solution for it. Here's how they solved it. If you look at #4 on this page you can see they are simply running the routine immediately.
It works well, but I don't know how any of that would work with BitUi.
I'm already creating a custom version of both the light and dark themes.
I tried an alternative to create a "hidden" theme and set that as the default in the HTML attribute, then in my
OnAfterRenderAsync
apply theme the user wants to see. I still see the flashing.Any ideas on how I could solve this?
Beta Was this translation helpful? Give feedback.
All reactions