Skip to content

Commit

Permalink
refactor: consolidate executors in gatsby layout
Browse files Browse the repository at this point in the history
  • Loading branch information
pmelab committed Jul 2, 2024
1 parent 3788808 commit db4b7c4
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions apps/website/src/layouts/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,12 @@ export default function Layout({
const data = useStaticQuery(graphql(FrameQuery));
return (
<OperationExecutorsProvider
executors={[{ executor: drupalExecutor(`/graphql`) }]}
executors={[
{ executor: drupalExecutor(`/graphql`) },
{ executor: data, id: FrameQuery },
]}
>
<OperationExecutorsProvider
executors={[{ executor: data, id: FrameQuery }]}
>
<Frame>{children}</Frame>
</OperationExecutorsProvider>
<Frame>{children}</Frame>
</OperationExecutorsProvider>
);
}

0 comments on commit db4b7c4

Please sign in to comment.