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

🗺 Streaming/Defer #4486

Closed
4 of 5 tasks
ryanflorence opened this issue Nov 1, 2022 · 8 comments
Closed
4 of 5 tasks

🗺 Streaming/Defer #4486

ryanflorence opened this issue Nov 1, 2022 · 8 comments
Assignees
Milestone

Comments

@ryanflorence
Copy link
Member

ryanflorence commented Nov 1, 2022

Adding defer, <Await>, etc. from React Router 6.4 and React 18 streaming support for document requests to Remix.

Depends on #4485

Progress

Issues/PRs

@laurencefass
Copy link

Do you have any links to docs detailing how this will work? Will it be using Server Components as a foundation?

Thanks

@sergiodxa
Copy link
Member

@laurencefass here's a Gist from the team explaining how Deferred works https://gist.github.com/jacob-ebey/9bde9546c1aafaa6bc8c242054b1be26.

Will it be using Server Components as a foundation?

It's not using RSC, that's a beta technology and the Remix team has mentioned they don't want to depend on unstable things.

You can also read how it will be used on the React Router docs https://reactrouter.com/en/main/guides/deferred, the usage should be the same

  1. Return a defer response from a loader with at least one key of the data being a promise
  2. Use Suspense to render a fallback, use Await to wait for the promise to be ready

@remix-run remix-run locked as off-topic and limited conversation to collaborators Nov 30, 2022
@ryanflorence
Copy link
Member Author

@brophdawg11 to get with @jacob-ebey to work out the React Router release we need for this work, and moving over deferred branch test suite and open issues.

@jacob-ebey
Copy link
Member

This work is included in experimental release: 0.0.0-experimental-2f4891673

@jacob-ebey jacob-ebey moved this from In Progress to Merged in Roadmap Jan 14, 2023
@jacob-ebey
Copy link
Member

@ryanflorence we need to bring the docs over. I have a fair amount I can link you to if you want to wrangle them up into the best places across remix and react router.

@jacob-ebey
Copy link
Member

jacob-ebey commented Jan 14, 2023

This has been released in 1.11.0

@chaance chaance moved this from Merged to Released in Roadmap Jan 19, 2023
@github-project-automation github-project-automation bot moved this from Released to Merged in Roadmap Jan 19, 2023
@jacob-ebey jacob-ebey reopened this Jan 19, 2023
@jacob-ebey
Copy link
Member

@ryanflorence I'll let you close this after you take a pass through the docs.

@ryanflorence
Copy link
Member Author

made a note in my tasks, so gonna close this out, we have some docs (thanks!) so let's call this done!

@ryanflorence ryanflorence moved this from Merged to Released in Roadmap Jan 19, 2023
@ryanflorence ryanflorence moved this from Released to Remix 1.11 in Roadmap Feb 16, 2023
@ryanflorence ryanflorence added this to the v1.11 milestone Feb 16, 2023
@ryanflorence ryanflorence moved this from Remix 1.11 to Released in Roadmap Feb 16, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

5 participants