Skip to content

Commit 2d3d7dd

Browse files
authored
Fixed CacheProvider demo in the docs (#2678)
* docs: fix cache-provider demo rendering * docs: fix cache-provider mdx * docs: add stub implementation of customPlugin
1 parent 239f2d0 commit 2d3d7dd

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

docs/cache-provider.mdx

+2
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ import { CacheProvider, jsx, css } from '@emotion/react'
1111
import createCache from '@emotion/cache'
1212
import { prefixer } from 'stylis'
1313

14+
const customPlugin = () => {}
15+
1416
const myCache = createCache({
1517
key: 'my-prefix-key',
1618
stylisPlugins: [

site/src/components/Playground.js

+2
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ export const scope = {
3131
return require('@emotion/is-prop-valid')
3232
case 'facepaint':
3333
return require('facepaint')
34+
case 'stylis':
35+
return require('stylis')
3436
default:
3537
// eslint-disable-next-line no-throw-literal
3638
throw `Module "${moduleName}" not found`

0 commit comments

Comments
 (0)