If the window size has changed since it was first loaded, the size of useWindowSize has not been updated to the latest state.