Skip to content

Commit

Permalink
fix: fix initialEntries type in createMemoryRouter (#9498)
Browse files Browse the repository at this point in the history
  • Loading branch information
brophdawg11 committed Oct 25, 2022
1 parent 096edeb commit 3674f18
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/odd-kids-buy.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"react-router": patch
---

fix initialEntries type in createMemoryRouter
3 changes: 2 additions & 1 deletion packages/react-router/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import type {
Router as RemixRouter,
ShouldRevalidateFunction,
To,
InitialEntry,
} from "@remix-run/router";
import {
AbortedDeferredError,
Expand Down Expand Up @@ -203,7 +204,7 @@ export function createMemoryRouter(
opts?: {
basename?: string;
hydrationData?: HydrationState;
initialEntries?: string[];
initialEntries?: InitialEntry[];
initialIndex?: number;
}
): RemixRouter {
Expand Down

0 comments on commit 3674f18

Please sign in to comment.