Skip to content

Commit

Permalink
chore: rename useNextLink to unstable_useNextLink
Browse files Browse the repository at this point in the history
  • Loading branch information
SukkaW committed Jan 21, 2024
1 parent 2f7f325 commit e2cd3ab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/src/pages/use-next-link.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ The `useNextLink` hook is your last resort. You should always prefer `next/link`
'use client';

import { useRef } from 'react';
import { useNextLink } from 'foxact/use-next-link';
import { unstable_useNextLink as useNextLink } from 'foxact/use-next-link';

export default function Page() {
const ref = useRef<HTMLAnchorElement>(null);
Expand Down
3 changes: 2 additions & 1 deletion src/use-next-link/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ const prefetch = (
});
};

export const useNextLink = (
/** @see https://foxact.skk.moe/use-next-link */
export const unstable_useNextLink = (
hrefProp: string | UrlObject,
{
prefetch: prefetchProp,
Expand Down

0 comments on commit e2cd3ab

Please sign in to comment.