Third party Link component for 'as'? #2762
Unanswered
Aleksey-Danchin
asked this question in
Q&A
Replies: 1 comment
-
Temporary solution. <DropdownItem
key="copy"
title="Карточка"
description="Данные и настройка"
startContent={
<FaFileWaveform className={iconClasses} />
}
as={forwardRef((props, ref) => (
<Link
ref={ref}
{...props}
to="/users/$userId"
params={userId}
/>
))}
/> |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
If I use a Link component from @tanstack/router as argument in some nextjs components I can't to add arguments for that Link component. In fact, I can, and even everything works great. But vscode show me error:
Code:
On the one hand, at runtime everything works as expected. On the other hand, the editor lacks a hint about expanding the arguments of the DropdownItem component. I tried extending the props interface of the DropdownItem component, but DropdownItemProps is a type, not an interface, so regular interface extensions don't work.
Maybe I'm missing something?
P.S.
to
andparams
are props of Link component.Beta Was this translation helpful? Give feedback.
All reactions