Skip to content

Commit f5c5559

Browse files
committed
apply code rabbit doc suggestion
1 parent 944af34 commit f5c5559

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/router/framework/react/guide/navigation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ type ToOptions<
2828
TTo extends string = '',
2929
> = {
3030
// `from` is an optional route ID or path. If it is not supplied, only absolute paths will be auto-completed and type-safe. It's common to supply the route.fullPath of the origin route you are rendering from for convenience. If you don't know the origin route, leave this empty and work with absolute paths or unsafe relative paths.
31-
from: string
31+
from?: string
3232
// `to` can be an absolute route path or a relative path from the `from` option to a valid route path. ⚠️ Do not interpolate path params, hash or search params into the `to` options. Use the `params`, `search`, and `hash` options instead.
3333
to: string
3434
// `params` is either an object of path params to interpolate into the `to` option or a function that supplies the previous params and allows you to return new ones. This is the only way to interpolate dynamic parameters into the final URL. Depending on the `from` and `to` route, you may need to supply none, some or all of the path params. TypeScript will notify you of the required params if there are any.

0 commit comments

Comments
 (0)