File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 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" } `
You can’t perform that action at this time.
0 commit comments