Describe the bug
Consuming a react context with useContext(ThemeContext) yields an error :
TypeError: Cannot read properties of null (reading 'useContext')
To Reproduce
Steps to reproduce the behavior:
- Create a context file
- Use the
Provider in your layout
- Try to access value in your template
- See error when using
yarn preview
Expected behavior
Same rendering as in exported templates
Desktop (please complete the following information):
- OS: macOS
- Browser: Chrome
- Version: 1.0.1
Describe the bug
Consuming a react context with
useContext(ThemeContext)yields an error :To Reproduce
Steps to reproduce the behavior:
Providerin your layoutyarn previewExpected behavior
Same rendering as in exported templates
Desktop (please complete the following information):