-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgatsby-ssr.js
13 lines (9 loc) · 1.22 KB
/
gatsby-ssr.js
1
2
3
4
5
6
7
8
9
10
11
12
13
// ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- //
// ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- //
import React from "react"
import { ApolloClientHOC } from "./src/apollo/client"
// ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- //
// ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- //
export const wrapRootElement = ({ element }) =><ApolloClientHOC>{element}</ApolloClientHOC>
// ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- //
// ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- //