You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -416,8 +416,8 @@ For more information, check out the [blog post](https://remix.run/blog/react-rou
416
416
417
417
⚠️ _[Unstable features](https://reactrouter.com/community/api-development-strategy#unstable-flags) are not recommended for production use_
418
418
419
-
- Add unstable RSC support ([#13700](https://github.com/remix-run/react-router/pull/13700))
420
-
- For more information, see the [RSC documentation](https://reactrouter.com/start/rsc/installation)
419
+
- Add unstable RSC support for Data Mode ([#13700](https://github.com/remix-run/react-router/pull/13700))
420
+
- For more information, see the [RSC documentation](https://reactrouter.com/how-to/react-server-components)
421
421
422
422
### Changes by Package
423
423
@@ -1947,7 +1947,7 @@ Also note that, if you were using Remix's `routes` option to define config-based
1947
1947
+];
1948
1948
```
1949
1949
1950
-
#### Typesafety improvements
1950
+
#### Type-safety improvements
1951
1951
1952
1952
React Router now generates types for each of your route modules and passes typed props to route module component exports ([#11961](https://github.com/remix-run/react-router/pull/11961), [#12019](https://github.com/remix-run/react-router/pull/12019)). You can access those types by importing them from `./+types/<route filename without extension>`.
If you need more sophisticated control over what is included in the client/server bundles, check out the [`vite-env-only` plugin](https://github.com/pcattori/vite-env-only).
Copy file name to clipboardExpand all lines: docs/api/framework-conventions/server-modules.md
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,6 +21,12 @@ export function validateToken(token: string) {
21
21
22
22
`.server` modules are a good way to explicitly mark entire modules as server-only. The build will fail if any code in a `.server` file or `.server` directory accidentally ends up in the client module graph.
23
23
24
+
<docs-info>
25
+
26
+
If you need more sophisticated control over what is included in the client/server bundles, check out the [`vite-env-only` plugin](https://github.com/pcattori/vite-env-only).
0 commit comments