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

RRR Rendering #4900

Merged
merged 8 commits into from
Dec 19, 2022
Merged

RRR Rendering #4900

merged 8 commits into from
Dec 19, 2022

Conversation

brophdawg11
Copy link
Contributor

@brophdawg11 brophdawg11 commented Dec 16, 2022

This PR wires up Remix to use the new data APIs from React Router 6.4+ and removes all of the code that we originally wrote in Remix for those APIs 🎉 . This encompasses steps 2-4 of React Router-ing Remix.

With this PR Remix is now:

  • Data fetching with createStaticHandler
  • Server rendering with createStaticRouter/<StaticRouteProvider>
  • Hydrating + Client Rendering with createBrowserRouter/<RouterProvider>

This also means Remix inherits:

  • useNavigation
  • useRevalidator
  • shouldRevalidate (and removal of unstable_shouldReload)
  • The getKey prop on <ScrollRestoration>
  • The preventScrollReset prop on <Link>

This has been a ton of work so I expect we'll uncover some bugs, but we're at a point now that we're functionally done as far as we know 😉. But since we don't know what we don't know, please raise concerns with any issues, typing deltas, etc.

Related info:

brophdawg11 and others added 5 commits December 16, 2022 17:34
Co-authored-by: Mehdi Achour <machour@gmail.com>
* First pass at SSR using react-router-dom@6.4
* useLoaderData/useActionData generics + useTransition/useFetcher types
* Remove duped router in favor of 1.0.4-pre.0
Co-authored-by: Jacob Ebey <jacob.ebey@live.com>
@changeset-bot
Copy link

changeset-bot bot commented Dec 16, 2022

🦋 Changeset detected

Latest commit: fc5b75e

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

This PR includes changesets to release 17 packages
Name Type
@remix-run/react Minor
@remix-run/server-runtime Minor
@remix-run/testing Minor
@remix-run/cloudflare Minor
@remix-run/deno Minor
@remix-run/dev Minor
@remix-run/node Minor
@remix-run/cloudflare-pages Minor
@remix-run/cloudflare-workers Minor
create-remix Minor
@remix-run/architect Minor
@remix-run/express Minor
@remix-run/netlify Minor
@remix-run/vercel Minor
@remix-run/serve Minor
remix Minor
@remix-run/eslint-config Minor

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

* Fix flakey firefox tests

* Fix flakey upload tests

* Add integration tests for useLoaderData/ErrorBoundary
@brophdawg11 brophdawg11 merged commit f604197 into dev Dec 19, 2022
@brophdawg11 brophdawg11 deleted the feat/rrr-rendering branch December 19, 2022 19:07
@github-actions github-actions bot added the awaiting release This issue has been fixed and will be released soon label Dec 19, 2022
@github-actions
Copy link
Contributor

🤖 Hello there,

We just published version v0.0.0-nightly-5bcbdc7-20221220 which includes this pull request. If you'd like to take it for a test run please try it out and let us know what you think!

Thanks!

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.

1 participant