2433c11946
[DebugEngine stopped working](https://github.com/styletron/styletron/issues/366) with v9.5 since the devtool is strictly set to eval and this option is not customizable. Unfortunately there is currently no way to fix this.
11 lines
286 B
JavaScript
11 lines
286 B
JavaScript
import { Client, Server } from 'styletron-engine-atomic'
|
|
|
|
const getHydrateClass = () =>
|
|
document.getElementsByClassName('_styletron_hydrate_')
|
|
|
|
export const styletron =
|
|
typeof window === 'undefined'
|
|
? new Server()
|
|
: new Client({
|
|
hydrate: getHydrateClass(),
|
|
})
|