🐛 Bug Report
As mentioned in title, this is caused by FluentOverflow components initially painting and then re-painting, leading to the flash you mention. This can also be seen on initial page load in any FluentOverflow component, including the example component here if you make the browser width small enough.
FluentOverflow should not visibly paint and then repaint on first component render. Perhaps it could paint but have visibility: hidden, calculate whether overflow should be applied, and then make itself visible.
💻 Repro or Code Sample
Make screen width on this page small enough such that component will have the overflow button appear immediately after component load. Notice a flash.
🔦 Context
Appears in dotnet/aspire#4417
🌍 Your Environment
Windows, Edge (latest stable), v4.8.0