Refs are not guaranteed to be attached at this timing, so useInsertionEffect is not a DOM measurement Hook.