Skip to content

Is scope still supported in MDXv2? If not, what's its replacement when runtime rendering is desired? #1884

Answered by wooorm
godmar asked this question in Q&A
Discussion options

You must be logged in to vote

Hey! You can pass props instead: https://mdxjs.com/docs/using-mdx/#props.


It sounds like you’re regexing imports away, that sounds dangerous and error prone. Imports are supported client side by, I believe, all browsers.

For your use case, you should likely do something along the lines of what’s described in the MDX on demand guide.

You should be able to change an MDX file locally, push changes, and Next takes care of deploying your site?

Replies: 4 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by ChristianMurphy
Comment options

You must be logged in to vote
1 reply
@wooorm
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants