I'm using material ui in my REACT pwa.
When i try to open the application in mobile device screen size won't detect at initialization. So my tree will render twice and i see screen blinking with on-the-fly responsive changes.
import { useMediaQuery, useTheme } from "@material-ui/core";
import { useRef } from "react";
export default function App() {
const theme = useTheme();
const isMobile = useMediaQuery(theme.breakpoints.down("xs"));
const render=useRef(0);
console.log(++render.current);
console.log('material answering to is mobile:',isMobile)
return (
<div/>
)
}
Is there something i don't know about it?
