Forge Jira project page app flickers when opened


I’m building a Forge Jira project page app. When Jira is set to dark theme, when I then open the app, the app flickers the light theme momentarily before switching to dark. I have the call to view.theme.enable() as the very first line in the App() function in App.tsx. Is there some way to avoid the flicker? Thanks.