Skip to content

Commit

Permalink
JsDocs for Tanstack link components
Browse files Browse the repository at this point in the history
  • Loading branch information
abailly-akamai committed Dec 10, 2024
1 parent 9b338e2 commit c41c336
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions packages/manager/src/components/TanstackLinks.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,12 @@ const MenuItemLinkComponent = React.forwardRef<
const CreatedLinkComponent = createLink(LinkComponent);
const CreatedMenuItemLinkComponent = createLink(MenuItemLinkComponent);

/**
* @deprecated
* This is marked as deprecated to discourage usage until the migration is complete.
* While not technically deprecated, these components should not be used anywhere in the app.
* They will be replacing our Links eventually, but have only been introduced early to test their functionality.
*/
export const TanstackLink: LinkComponent<typeof LinkComponent> = (props) => {
return (
<CreatedLinkComponent
Expand All @@ -64,6 +70,12 @@ export const TanstackLink: LinkComponent<typeof LinkComponent> = (props) => {
);
};

/**
* @deprecated
* This is marked as deprecated to discourage usage until the migration is complete.
* While not technically deprecated, these components should not be used anywhere in the app.
* They will be replacing our Links eventually, but have only been introduced early to test their functionality.
*/
export const TanstackMenuItemLink: LinkComponent<
typeof MenuItemLinkComponent
> = (props) => {
Expand Down

0 comments on commit c41c336

Please sign in to comment.