Skip to content

Commit

Permalink
Fix RouterProvider future prop (#10900)
Browse files Browse the repository at this point in the history
  • Loading branch information
brophdawg11 committed Oct 2, 2023
1 parent b98e82d commit ebe2491
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/partial-future-config.md
@@ -0,0 +1,5 @@
---
"react-router": patch
---

Fix `RouterProvider` `future` prop type to be a `Partial<FutureConfig>` so that not all flags must be specified
2 changes: 1 addition & 1 deletion docs/routers/router-provider.md
Expand Up @@ -16,7 +16,7 @@ declare function RouterProvider(
interface RouterProviderProps {
fallbackElement?: React.ReactNode;
router: Router;
future?: FutureConfig;
future?: Partial<FutureConfig>;
}
```

Expand Down
2 changes: 1 addition & 1 deletion packages/react-router/lib/components.tsx
Expand Up @@ -56,7 +56,7 @@ export interface FutureConfig {
export interface RouterProviderProps {
fallbackElement?: React.ReactNode;
router: RemixRouter;
future?: FutureConfig;
future?: Partial<FutureConfig>;
}

/**
Expand Down

0 comments on commit ebe2491

Please sign in to comment.