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(tailwind): Media query major issues #1758

Merged
merged 6 commits into from
Nov 4, 2024

Conversation

gabrielmfern
Copy link
Collaborator

The issues were two that happened because of the new refactor.
The first one was that there would be an error if the user did use any media queries while using
React 18. Our tests did not catch this because we are using React 19 internally, and React 19
does support a Promise as a React Node itself, so this explains that.

The other issue was that the rules would be added for each time the user had the same media query,
that means a lot of duplicates would get into the <style> tag for the <head>.

Closes #1757

@gabrielmfern gabrielmfern self-assigned this Nov 4, 2024
Copy link

vercel bot commented Nov 4, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
react-email ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 4, 2024 3:31pm
react-email-demo ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 4, 2024 3:31pm

Copy link

changeset-bot bot commented Nov 4, 2024

🦋 Changeset detected

Latest commit: 791ec34

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 13 packages
Name Type
@react-email/tailwind Patch
@react-email/components Patch
react-email-with-aws-ses Patch
react-email-with-mailersend Patch
react-email-with-nodemailer Patch
react-email-with-plunk Patch
react-email-with-postmark Patch
react-email-with-resend Patch
react-email-with-sendgrid Patch
react-email-with-next-scaleway Patch
react-email-with-node-scaleway Patch
react-email-starter Patch
create-email Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@gabrielmfern gabrielmfern merged commit 6bd37a7 into main Nov 4, 2024
10 checks passed
@gabrielmfern gabrielmfern deleted the fix/tailwind-refactor-issues branch November 4, 2024 16:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants