Skip to content

Commit

Permalink
Fixed CacheProvider demo in the docs (#2678)
Browse files Browse the repository at this point in the history
* docs: fix cache-provider demo rendering

* docs: fix cache-provider mdx

* docs: add stub implementation of customPlugin
  • Loading branch information
pengx17 committed Mar 10, 2022
1 parent 239f2d0 commit 2d3d7dd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/cache-provider.mdx
Expand Up @@ -11,6 +11,8 @@ import { CacheProvider, jsx, css } from '@emotion/react'
import createCache from '@emotion/cache'
import { prefixer } from 'stylis'

const customPlugin = () => {}

const myCache = createCache({
key: 'my-prefix-key',
stylisPlugins: [
Expand Down
2 changes: 2 additions & 0 deletions site/src/components/Playground.js
Expand Up @@ -31,6 +31,8 @@ export const scope = {
return require('@emotion/is-prop-valid')
case 'facepaint':
return require('facepaint')
case 'stylis':
return require('stylis')
default:
// eslint-disable-next-line no-throw-literal
throw `Module "${moduleName}" not found`
Expand Down

0 comments on commit 2d3d7dd

Please sign in to comment.