mirror of
https://github.com/facebook/docusaurus.git
synced 2025-08-06 10:20:09 +02:00
fix(v2): render correct theme for live code blocks on SSR (#2227)
This commit is contained in:
parent
c0bacfd9f9
commit
95caf833d8
1 changed files with 1 additions and 0 deletions
|
@ -78,6 +78,7 @@ export default ({
|
||||||
if (live) {
|
if (live) {
|
||||||
return (
|
return (
|
||||||
<Playground
|
<Playground
|
||||||
|
key={mounted}
|
||||||
scope={{...React}}
|
scope={{...React}}
|
||||||
code={children.trim()}
|
code={children.trim()}
|
||||||
theme={prismTheme}
|
theme={prismTheme}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue