Skip to content

Commit

Permalink
fix: fix ant-design#8194 useEffect -> useLayoutEffect
Browse files Browse the repository at this point in the history
  • Loading branch information
drizzlesconsin authored Nov 27, 2024
1 parent 21ce755 commit 32e11c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/layout/src/components/PageContainer/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ const PageContainerBase: React.FC<PageContainerProps> = (props) => {
} = props;
const value = useContext(RouteContext);
/** 告诉 props 是否存在 footerBar */
useEffect(() => {
useLayoutEffect(() => {
if (!value || !value?.setHasPageContainer) {
return () => {};
}
Expand Down

0 comments on commit 32e11c5

Please sign in to comment.