github remix-run/remix remix@1.10.0-pre.5
v1.10.0-pre.5

latest releases: v0.0.0-nightly-6eb6acf3f-20240511, remix@2.9.2, @remix-run/testing@2.9.2...
pre-release16 months ago

In this pre-release, we wanted to give you a few goodies before we split for the holidays 🎁

In addition to several bugfixes and DX improvements, we are excited to bring the final push towards React Router-ing Remix to the finish line.

All of our data APIs are now completely built into React Router, which provides a few benefits to you:

  1. It allows us to quickly start bringing new React Router features into Remix (hello deferred data!)
  2. If you have a React Router app you've been thinking about migrating to Remix, you can be confident that using the new APIs in v6.4 will work the same way when you're ready to make the move (really though, we think you should make the move)

While we have battle-tested this release and feel good about where we are (holy cow, we wrote a lot of tests the past few weeks), we wanted to give our eager friends a chance to push on it a bit over the break. πŸŽ‰

Other changes

  • unstable_shouldReload is now shouldRevalidate and has a new (stable!) API. You will need to refactor those functions if you want to fine-tune the revalidation logic in your routes. The new function type looks like this:
    interface ShouldRevalidateFunction {
      (args: {
        currentUrl: URL;
        currentParams: AgnosticDataRouteMatch["params"];
        nextUrl: URL;
        nextParams: AgnosticDataRouteMatch["params"];
        formMethod?: Submission["formMethod"];
        formAction?: Submission["formAction"];
        formEncType?: Submission["formEncType"];
        formData?: Submission["formData"];
        actionResult?: DataResult;
        defaultShouldRevalidate: boolean;
      }): boolean;
    }
  • useTransition will be deprecated in favor of useNavigation and useNavigationType to avoid naming conflicts with React's useTransition hook. Check out the details for useNavigation over in the React Router docs.
  • We brought over a couple other new hooks from React Router:

That's it! We'd like to wish you a happy holidays and a happy hacking. πŸ€“

See you in 2023 with much more Remixing to come πŸ’ΏπŸ₯‚

Don't miss a new remix release

NewReleases is sending notifications on new releases.