Skip to content

Commit e9bea61

Browse files
liuhanquhanquliu
and
hanquliu
authored
Remove createRoutesFromArray (#8464)
Co-authored-by: hanquliu <[email protected]>
1 parent 8e3fdb5 commit e9bea61

File tree

1 file changed

+0
-32
lines changed

1 file changed

+0
-32
lines changed

docs/api.md

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -774,36 +774,6 @@ function requestHandler(req, res) {
774774
http.createServer(requestHandler).listen(3000);
775775
```
776776

777-
### `createRoutesFromArray`
778-
779-
<details>
780-
<summary>Type declaration</summary>
781-
782-
```tsx
783-
declare function createRoutesFromArray(
784-
array: PartialRouteObject[]
785-
): RouteObject[];
786-
787-
interface PartialRouteObject {
788-
path?: string;
789-
caseSensitive?: boolean;
790-
element?: React.ReactNode;
791-
children?: PartialRouteObject[];
792-
}
793-
794-
interface RouteObject {
795-
caseSensitive: boolean;
796-
children?: RouteObject[];
797-
element: React.ReactNode;
798-
path: string;
799-
}
800-
```
801-
802-
</details>
803-
804-
`createRoutesFromArray` is a helper that fills in the (potentially) missing pieces in an array of route objects. It is used internally by [`useRoutes`](#useroutes) to create route objects.
805-
<a name="createroutesfromchildren"></a>
806-
807777
### `createRoutesFromChildren`
808778

809779
<details>
@@ -1330,8 +1300,6 @@ function App() {
13301300
}
13311301
```
13321302

1333-
See also [`createRoutesFromArray`](#createroutesfromarray).
1334-
13351303
### `useSearchParams`
13361304

13371305
> **Note:**

0 commit comments

Comments
 (0)