Skip to content

Commit d2e5c33

Browse files
committed
Update changeset
1 parent d91e20d commit d2e5c33

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.changeset/angry-students-pay.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,11 @@
33
"react-router": minor
44
---
55

6-
Add new `routeDiscovery` `react-router.config.ts` option to disable Lazy Route Discovery
6+
Added a new `react-router.config.ts` `routeDiscovery` option to configure Lazy Route Discovery behavior.
77

8-
- The default value is `routeDiscovery: "lazy"`
9-
- Setting `routeDiscovery: "initial"` will disable Lazy Route Discovery and send up all routes in the manifest on initial document load
10-
- There is also an object version of the config which allows you to customize the manifest path when using `lazy`
8+
- By default, Lazy Route Discovery is enabled and makes manifest requests to the `/__manifest` path:
9+
- `routeDiscovery: { mode: "lazy", manifestPath: "/__manifest" }`
10+
- You can modify the manifest path used:
1111
- `routeDiscovery: { mode: "lazy", manifestPath: "/custom-manifest" }`
12+
- Or you can disable this feature entirely and include all routes in the manifest on initial document load:
13+
- `routeDiscovery: { mode: "initial" }`

0 commit comments

Comments
 (0)