Skip to content

Commit

Permalink
Try restore SlotFillProvider
Browse files Browse the repository at this point in the history
  • Loading branch information
youknowriad committed Nov 27, 2024
1 parent 09c1249 commit 478e094
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions packages/edit-site/src/components/layout/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import {
__unstableMotion as motion,
__unstableAnimatePresence as AnimatePresence,
__unstableUseNavigateRegions as useNavigateRegions,
SlotFillProvider,
} from '@wordpress/components';
import {
useReducedMotion,
Expand Down Expand Up @@ -236,8 +237,10 @@ function Layout( { route } ) {

export default function LayoutWithGlobalStylesProvider( props ) {
return (
<GlobalStylesProvider>
<Layout { ...props } />
</GlobalStylesProvider>
<SlotFillProvider>
<GlobalStylesProvider>
<Layout { ...props } />
</GlobalStylesProvider>
</SlotFillProvider>
);
}

0 comments on commit 478e094

Please sign in to comment.