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

feat(render): Substitute implementation of render with the one from renderAsync #1268

Open
wants to merge 19 commits into
base: canary
Choose a base branch
from

Conversation

gabrielmfern
Copy link
Collaborator

@gabrielmfern gabrielmfern commented Jan 30, 2024

This deprecates renderAsync and replaces the implementation of render with the implementation
from renderAsync. Along with this implementation change of render, I also added the unit tests from renderAsync to render.

Since many of our tests use the render utility, I had to change them all to make sure that the render's returned Promise is now treated correctly.

I believe this is the best course of action for a couple of reasons that I go in depth on #1144.

Issues that this can help fix

Copy link

vercel bot commented Jan 30, 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 Apr 4, 2024 4:01pm
react-email-demo ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 4, 2024 4:01pm

@antoinerousseau
Copy link

does this mean the react-email preview page would support async components? (RSC)
that would be great!

@gabrielmfern
Copy link
Collaborator Author

@antoinerousseau That'd be pretty cool and I'll still experiment with that but no, not yet, mostly it would be possible to have something like react-query.

@edeuxk
Copy link

edeuxk commented Feb 5, 2024

Hello @gabrielmfern thank you for this amazing work.
Does your PR includes the ReadableByteStreamController with Safari ?

@gabrielmfern
Copy link
Collaborator Author

gabrielmfern commented Feb 5, 2024

Does your PR includes the ReadableByteStreamController with Safari ?

@edeuxk
I don't think so. Could you link some resources? I've never heard of that

@gabrielmfern gabrielmfern changed the title feat(react-email): Substitute implementation of render with the one from renderAsync feat(render): Substitute implementation of render with the one from renderAsync Feb 16, 2024
@gabrielmfern gabrielmfern marked this pull request as draft March 5, 2024 14:23
@gabrielmfern gabrielmfern marked this pull request as ready for review March 5, 2024 15:18
@gabrielmfern gabrielmfern added Package: @react-email/render Breaking change An issue or pull request that propose a change that break existing code labels Mar 6, 2024
@gabrielmfern gabrielmfern force-pushed the feat/only-support-render-async branch from d136d37 to eeca866 Compare March 18, 2024 17:32
endymion1818 and others added 4 commits April 3, 2024 11:49
Co-authored-by: Benny Burrito <87976514+bennyburrito@users.noreply.github.com>
Co-authored-by: Ben Verspeak <ben.verspeak@yonderland.com>
Co-authored-by: Gabriel Miranda <gabrielmfern@outlook.com>
… is not installed (#1387)

Co-authored-by: zhanghong <hong.zhang@axinan.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
@RomainGueffier
Copy link

Does your PR includes the ReadableByteStreamController with Safari ?

@edeuxk I don't think so. Could you link some resources? I've never heard of that

Hi @gabrielmfern we mentioned it in this issue #1080 (comment)

@gabrielmfern gabrielmfern force-pushed the canary branch 3 times, most recently from 8a41d44 to a0a0c9a Compare July 1, 2024 13:49
@gabrielmfern gabrielmfern force-pushed the canary branch 3 times, most recently from e001f5e to f5cf05c Compare July 3, 2024 21:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Breaking change An issue or pull request that propose a change that break existing code Package: @react-email/render
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants