We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 096edeb commit 3674f18Copy full SHA for 3674f18
.changeset/odd-kids-buy.md
@@ -0,0 +1,5 @@
1
+---
2
+"react-router": patch
3
4
+
5
+fix initialEntries type in createMemoryRouter
packages/react-router/index.ts
@@ -17,6 +17,7 @@ import type {
17
Router as RemixRouter,
18
ShouldRevalidateFunction,
19
To,
20
+ InitialEntry,
21
} from "@remix-run/router";
22
import {
23
AbortedDeferredError,
@@ -203,7 +204,7 @@ export function createMemoryRouter(
203
204
opts?: {
205
basename?: string;
206
hydrationData?: HydrationState;
- initialEntries?: string[];
207
+ initialEntries?: InitialEntry[];
208
initialIndex?: number;
209
}
210
): RemixRouter {
0 commit comments