diff --git a/apps/web/src/gatsby/browser/index.ts b/apps/web/src/gatsby/browser/index.ts index f96e94caf..98f3d7f27 100644 --- a/apps/web/src/gatsby/browser/index.ts +++ b/apps/web/src/gatsby/browser/index.ts @@ -1,4 +1,4 @@ -import React from 'react' +// import React from 'react' export * from './onServiceWorkerInstalled' export * from './onServiceWorkerUpdateFound' @@ -7,11 +7,11 @@ export * from './onServiceWorkerUpdateReady' export * from './wrapPageElement' export * from './wrapRootElement' -export const onClientEntry = () => { - if (process.env.NODE_ENV !== 'production') { - const whyDidYouRender = require('@welldone-software/why-did-you-render') - whyDidYouRender(React, { - trackAllPureComponents: true - }) - } -} +// export const onClientEntry = () => { +// if (process.env.NODE_ENV !== 'production') { +// const whyDidYouRender = require('@welldone-software/why-did-you-render') +// whyDidYouRender(React, { +// trackAllPureComponents: true +// }) +// } +// } diff --git a/apps/web/src/gatsby/config.ts b/apps/web/src/gatsby/config.ts index 3f8ff7859..33a2a5c8f 100644 --- a/apps/web/src/gatsby/config.ts +++ b/apps/web/src/gatsby/config.ts @@ -9,7 +9,7 @@ const config: GatsbyConfig = { }, pathPrefix: '/', plugins: [ - `gatsby-plugin-why-did-you-render`, + // `gatsby-plugin-why-did-you-render`, `gatsby-plugin-postcss`, { resolve: require.resolve(`@nrwl/gatsby/plugins/nx-gatsby-ext-plugin`), diff --git a/apps/web/src/store/index.tsx b/apps/web/src/store/index.tsx index c016cd8be..b7e44ae21 100644 --- a/apps/web/src/store/index.tsx +++ b/apps/web/src/store/index.tsx @@ -10,11 +10,8 @@ export const useStoreon = customContext(StoreonContext) export const Context: React.FC = props => { const { children } = props - const clientSession = Math.random().toString(36).substring(3) - return ( - {clientSession} {children} )