fix(ui): initialize standalone controls synchronously
This commit is contained in:
@@ -34,7 +34,9 @@ function ControlButton({
|
||||
}
|
||||
|
||||
export function StandaloneBrowserControls({ mobile }: { mobile: boolean }) {
|
||||
const [chromeless, setChromeless] = useState(false);
|
||||
const [chromeless, setChromeless] = useState(() =>
|
||||
typeof window !== "undefined" && mobile ? isChromelessDisplayMode() : false,
|
||||
);
|
||||
const toastActions = useOptionalToastActions();
|
||||
|
||||
useEffect(() => {
|
||||
|
||||
Reference in New Issue
Block a user