Question: fast refresh for MDX files
Closed this issue · 4 comments
Next.js 10 now supports fast refresh for MDX files, any chance this library can also support it?
I upgrade to Next.js 10 and still works fine still, but it does a full reload instead of fast refreshing.
This library has nothing to do with mdx files and is specifically intended to do a full reload
If you are looking to load mdx files as files through webpack, you can use the next mdx loader, or if you need more functionality, you can use next-mdx-enhanced, though there are many drawbacks to loading mdx files through webpack, primarily scale-related. It is not possible as far as i know for fast refresh to work for data loaded through getStaticProps
, ever.
Thanks for the clarification @jescalan. I'm using next-mdx-remote, will dig to see if I can get it to fast refresh with getStaticProps
, although as you say I don't think it's possible.