-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Export the MDXContent component after its instantiated #1024
Conversation
This caused a warning in Firefox because the isMDXContent assignment was after the export which caused it to result after the component return in the transpiled output. Related: gatsbyjs/gatsby#23171 Co-authored-by: Laurie Barth <[email protected]>
This pull request is being automatically deployed with Vercel (learn more). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Other than the diff problem, looks good! 👍
MDXContent.isMDXComponent = true; | ||
|
||
export default MDXContent" | ||
`) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
😅 I think you can solve this noisy diff by simply indenting the content of toMatchInlineSnapshot
. As a separate change we should probably start using toMatchSnapshot
because the content is large.
Any update on this? |
@johno Is there anything blocking this? What can I do to help? |
Solved by #1382 btw |
Hi all! I’m going to close this as it landed on the The reason is so that it’s more clear which issues still need to be solved already and don’t require further work. Expect another For more info, see #1041. |
This caused a warning in Firefox because the
isMDXContent assignment was after the export
which caused it to result after the component
return in the transpiled output.
Related: gatsbyjs/gatsby#23171
Co-authored-by: Laurie Barth [email protected]