Yoga Lin
Yoga Lin
因为依赖的 react-router 的 `useLocation` 的值是异步更新的,基于此封装的函数基本都会有这个问题。 https://github.com/remix-run/react-router/blob/4f18028d06363070aa811a63801d79e2ed11f897/packages/react-router-dom/index.tsx#L146-L151
英文区有人已经提了 mr 了,能看下吗 https://github.com/maixiaojie/git-emoji/pull/23
https://github.com/ant-design/ant-design/issues/46910 https://github.com/ant-design/ant-design/issues/46198
我也是一样的情况,也是自己计算高度解决的。同样的有些电脑会显示...,有些不会。 https://github.com/ant-design/ant-design/issues/46198