Skip to content
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

fix: add useEffect to Web Components example #1109

Merged
merged 1 commit into from
Jun 12, 2020
Merged

Conversation

marcysutton
Copy link

A user was confused about how to use the Web Components example on Twitter, as the call to window was causing issues with SSR. This PR adds useEffect to the example to prevent against it.

@vercel
Copy link

vercel bot commented Jun 10, 2020

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/mdx/mdx/krgjki5jd
✅ Preview: https://mdx-git-fork-marcysutton-master.mdx.now.sh

@vercel vercel bot temporarily deployed to Preview June 10, 2020 21:59 Inactive
@johno
Copy link
Member

johno commented Jun 12, 2020

Thank you!

@johno johno merged commit a4dfd99 into mdx-js:master Jun 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants