github remix-run/react-router react-router-dom@6.4.0-pre.10

latest releases: v0.0.0-nightly-242035412-20240921, v0.0.0-nightly-d1bb8941a-20240920, v0.0.0-experimental-312bddb22...
pre-release2 years ago

Patch Changes

  • SSR Updates for React Router (#9058)

    Note: The Data-Router SSR aspects of @remix-run/router and react-router-dom are being released as unstable in this release (unstable_createStaticHandler and unstable_DataStaticRouter), and we plan to finalize them in a subsequent minor release once the kinks can be worked out with the Remix integration. To that end, they are available for use, but are subject to breaking changes in the next minor release.

    • Remove useRenderDataRouter() in favor of <DataRouterProvider>/<DataRouter>
    • Support automatic hydration in <DataStaticRouter>/<DataBrowserRouter>/<DataHashRouter>
      • Uses window.__staticRouterHydrationData
      • Can be disabled on the server via <DataStaticRouter hydrate={false}>
      • Can be disabled (or overridden) in the browser by passing hydrationData to <DataBrowserRouter>/<DataHashRouter>
    • <DataStaticRouter> now tracks it's own SSR error boundaries on StaticHandlerContext
    • StaticHandlerContext now exposes statusCode/loaderHeaders/actionHeaders
    • foundMissingHydrationData check removed since Remix routes may have loaders (for modules) that don't return data for loaderData
  • Updated dependencies

    • react-router@6.4.0-pre.10

Don't miss a new react-router release

NewReleases is sending notifications on new releases.