linkOptions is a function which type checks an object literal with the intention of being used for Link, navigate or redirect
The linkOptions accepts the following option:
An object literal with the exact type inferred from the input
const userLinkOptions = linkOptions({
to: '/dashboard/users/user',
search: {
usersView: {
sortBy: 'email',
filterBy: 'filter',
},
userId: 0,
},
})
function DashboardComponent() {
return <Link {...userLinkOptions} />
}const userLinkOptions = linkOptions({
to: '/dashboard/users/user',
search: {
usersView: {
sortBy: 'email',
filterBy: 'filter',
},
userId: 0,
},
})
function DashboardComponent() {
return <Link {...userLinkOptions} />
}