Skip to content

Commit 82f3a7d

Browse files
committed
Add provider wrapper to ssr
1 parent 7b126e5 commit 82f3a7d

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

gatsby-ssr.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,7 @@
55
*/
66

77
// You can delete this file if you're not using it
8+
9+
import React from 'react'
10+
import { Provider } from './src/context/globalContext'
11+
export const wrapRootElement = ({ element }) => <Provider>{element}</Provider>

0 commit comments

Comments
 (0)