Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/canary' into update-wp5-error
Browse files Browse the repository at this point in the history
  • Loading branch information
ijjk committed Dec 29, 2020
2 parents a5baa26 + 2433c11 commit 14b4756
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 2 additions & 2 deletions examples/with-styletron/pages/_app.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import App from 'next/app'
import { Provider as StyletronProvider } from 'styletron-react'
import { styletron, debug } from '../styletron'
import { styletron } from '../styletron'

export default class MyApp extends App {
render() {
const { Component, pageProps } = this.props
return (
<StyletronProvider value={styletron} debug={debug} debugAfterHydration>
<StyletronProvider value={styletron}>
<Component {...pageProps} />
</StyletronProvider>
)
Expand Down
4 changes: 0 additions & 4 deletions examples/with-styletron/styletron.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { Client, Server } from 'styletron-engine-atomic'
import { DebugEngine } from 'styletron-react'

const getHydrateClass = () =>
document.getElementsByClassName('_styletron_hydrate_')
Expand All @@ -10,6 +9,3 @@ export const styletron =
: new Client({
hydrate: getHydrateClass(),
})

export const debug =
process.env.NODE_ENV === 'production' ? void 0 : new DebugEngine()

0 comments on commit 14b4756

Please sign in to comment.