flushSync
* More reliable width and height change detection * Put the dimensions useEffect before the scene render one, just in case