From the Microsoft docs:
"Prerendering is enabled by default for interactive components."
"If any state is created asynchronously, the UI may flicker as the prerendered UI is replaced when the component is rerendered."
As mentioned, PersistentComponentState is the key to avoid this. (take a look here)