tropical
tropical copied to clipboard
Issue with using MDXProvider with Preact
Hi thanks for your work on this library, it looks really helpful.
I wanted to try and rewrite my personal site using this library, but I wanted to use Preact instead of React.
When I run the dev mode with ‘npm run dev’ I get this error: ‘can’t read property of undefined(reading context)’
I’m paraphrasing, but that’s the gist of the error. It appears to be an issue with MDXProvider and how it handles ‘context’.
Are you aware of any differences between Preact/React handle using ‘context’? Since Preact is supposed to be mostly compatible with React, I’m surprised I’d run into an issue like this. I’ll try to set up a demo and link it to this issue.