Skip to content

Conversation

nickytonline
Copy link
Contributor

@nickytonline nickytonline commented Feb 21, 2023

Description

Related Tickets & Documents

Updates the Netlify Edge Functions demo site to use renderReadableStream. I checked in with the Remix team after Wes opened #50. Most other templates for edge in the Remix repo use renderToString but Jacob recommended to go with renderReadableStream instead of renderToString.

Thanks again for the feedback @jacob-ebey and @wesbos!

QA Instructions, Screenshots, Recordings

The deploy preview is all green and when you open the site, it loads up.

CleanShot 2023-02-23 at 08 06 39

For us to review and ship your PR efficiently, please perform the following steps:

  • Open a bug/issue before writing your code 🧑‍💻. This
    ensures we can discuss the changes and get feedback from everyone that should be involved. If you`re fixing a
    typo or something that`s on fire 🔥 (e.g. incident related), you can skip this step.
  • Read the contribution guidelines 📖. This ensures your code follows our style
    guide and passes our tests.
  • Update or add tests (if any source code was changed or added) 🧪
  • Update or add documentation (if features were changed or added) 📝
  • Make sure the status checks below are successful ✅

A picture of a cute animal (not mandatory, but encouraged)

A hamster doing back flips out of a dish

@nickytonline nickytonline self-assigned this Feb 21, 2023
@nickytonline nickytonline requested a review from a team February 21, 2023 22:11
@github-actions github-actions bot added the type: chore work needed to keep the product and development running smoothly label Feb 21, 2023
@nickytonline nickytonline force-pushed the nickytonline/update-edge-demo-to-render-readable-stream branch from 1c1f714 to cdf0ac6 Compare February 21, 2023 22:11
@nickytonline nickytonline changed the title chore: updated demo site to renderReadableStream chore: update demo site to renderReadableStream Feb 21, 2023
@nickytonline nickytonline force-pushed the nickytonline/update-edge-demo-to-render-readable-stream branch from cdf0ac6 to 1c36659 Compare February 21, 2023 22:13
@nickytonline nickytonline added the automerge so Kodiak can automatically merge label Feb 21, 2023
@LekoArts LekoArts changed the title chore: update demo site to renderReadableStream chore: update demo site to renderToReadableStream Feb 22, 2023
@nickytonline nickytonline changed the title chore: update demo site to renderToReadableStream chore: update demo site to use renderToReadableStream Feb 22, 2023
import { RemixServer } from '@remix-run/react'
import { renderToString } from 'react-dom/server'
import { renderToReadableStream } from 'react-dom/server'
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link

@orinokai orinokai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, Nick! Gave it a test run and all seems well. 🚀

@kodiakhq kodiakhq bot merged commit 6215c2a into main Feb 23, 2023
@kodiakhq kodiakhq bot deleted the nickytonline/update-edge-demo-to-render-readable-stream branch February 23, 2023 13:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automerge so Kodiak can automatically merge type: chore work needed to keep the product and development running smoothly
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants