|
1 | 1 | # `@react-router/dev` |
2 | 2 |
|
| 3 | +## 7.14.0-pre.0 |
| 4 | + |
| 5 | +### Minor Changes |
| 6 | + |
| 7 | +- Add support for Vite 8 ([#14876](https://github.com/remix-run/react-router/pull/14876)) |
| 8 | + |
| 9 | +### Patch Changes |
| 10 | + |
| 11 | +- support for prerendering multiple server bundles with v8_viteEnvironmentApi ([#14921](https://github.com/remix-run/react-router/pull/14921)) |
| 12 | +- rsc framework mode prerender / spa mode support ([#14907](https://github.com/remix-run/react-router/pull/14907)) |
| 13 | +- UNSTABLE RSC FRAMEWORK MODE BREAKING CHANGE - Existing route module exports remain unchanged from stable v7 non-RSC mode, but new exports are added for RSC mode. If you want to use RSC features, you will need to update your route modules to export the new annotations. ([#14901](https://github.com/remix-run/react-router/pull/14901)) |
| 14 | + |
| 15 | + If you are using RSC framework mode currently, you will need to update your route modules to the new conventions. The following route module components have their own mutually exclusive server component counterparts: |
| 16 | + |
| 17 | + | Server Component Export | Client Component | |
| 18 | + | ----------------------- | ----------------- | |
| 19 | + | `ServerComponent` | `default` | |
| 20 | + | `ServerErrorBoundary` | `ErrorBoundary` | |
| 21 | + | `ServerLayout` | `Layout` | |
| 22 | + | `ServerHydrateFallback` | `HydrateFallback` | |
| 23 | + |
| 24 | + If you were previously exporting a `ServerComponent`, your `ErrorBoundary`, `Layout`, and `HydrateFallback` were also server components. If you want to keep those as server components, you can rename them and prefix them with `Server`. If you were previously importing the implementations of those components from a client module, you can simply inline them. |
| 25 | + |
| 26 | + Example: |
| 27 | + |
| 28 | + Before |
| 29 | + |
| 30 | + ```tsx |
| 31 | + import { ErrorBoundary as ClientErrorBoundary } from "./client"; |
| 32 | + |
| 33 | + export function ServerComponent() { |
| 34 | + // ... |
| 35 | + } |
| 36 | + |
| 37 | + export function ErrorBoundary() { |
| 38 | + return <ClientErrorBoundary />; |
| 39 | + } |
| 40 | + |
| 41 | + export function Layout() { |
| 42 | + // ... |
| 43 | + } |
| 44 | + |
| 45 | + export function HydrateFallback() { |
| 46 | + // ... |
| 47 | + } |
| 48 | + ``` |
| 49 | + |
| 50 | + After |
| 51 | + |
| 52 | + ```tsx |
| 53 | + export function ServerComponent() { |
| 54 | + // ... |
| 55 | + } |
| 56 | + |
| 57 | + export function ErrorBoundary() { |
| 58 | + // previous implementation of ClientErrorBoundary, this is now a client component |
| 59 | + } |
| 60 | + |
| 61 | + export function ServerLayout() { |
| 62 | + // rename previous Layout export to ServerLayout to make it a server component |
| 63 | + } |
| 64 | + |
| 65 | + export function ServerHydrateFallback() { |
| 66 | + // rename previous HydrateFallback export to ServerHydrateFallback to make it a server component |
| 67 | + } |
| 68 | + ``` |
| 69 | + |
| 70 | +- update the reveal command to support rsc for `entry.client`, `entry.rsc`, `entry.ssr` ([#14904](https://github.com/remix-run/react-router/pull/14904)) |
| 71 | +- Updated dependencies: |
| 72 | + - `react-router@7.14.0-pre.0` |
| 73 | + - `@react-router/node@7.14.0-pre.0` |
| 74 | + - `@react-router/serve@7.14.0-pre.0` |
| 75 | + |
3 | 76 | ## 7.13.2 |
4 | 77 |
|
5 | 78 | ### Patch Changes |
|
0 commit comments