Open dbertella opened 3 years ago
If it can help I created a dummy repository to reproduce the issue https://github.com/dbertella/test-docz it's fresh create react app with docz and theme ui installed
@dbertella Did you ever figure this out? I'm running into the same thing. Seems like the maintainers of docz have given up on it.
Nope I gave up on docz for now. It's not working anymore since I updated few dependencies and i didn't look into it anymore
Bug Report
Describe the bug
I'm trying to use Playground component but is failing when adding a ThemeProvider from theme-ui in a custom wrapper
To Reproduce
I follow instruction in this comment https://github.com/doczjs/docz/issues/1474#issuecomment-671536726 and it seems to work fine. When adding Playground component I have an error
It seems like Playground component is rerendering multiple time and at first theme is defined but after it become undefined https://github.com/doczjs/docz/blob/master/core/gatsby-theme-docz/src/components/Playground/index.js#L52
This is![image](https://user-images.githubusercontent.com/2563196/100393536-e943d680-3031-11eb-98a4-8c8a3efb0d62.png)
console.log(theme)
at line 59 in the above fileEnvironment