I was using useLayoutEffect to make some measurements from a DOM node. However, I was getting incorrect sizings, usually bigger than it should. It may be because the entire page