diff --git a/src/use-next-link-props/index.ts b/src/use-next-link-props/index.ts index e5fdfa64..4112ae0b 100644 --- a/src/use-next-link-props/index.ts +++ b/src/use-next-link-props/index.ts @@ -1,4 +1,5 @@ import 'client-only'; + import type { LinkProps } from 'next/link'; import { useCallback, useEffect, useMemo, useState } from 'react'; import type { MouseEvent } from 'react'; @@ -8,7 +9,7 @@ export interface ExtraProps { isPending: boolean } -export const useNextLinkProps = (props: LinkProps): LinkProps & ExtraProps => { +export const useNextLink = (props: LinkProps): LinkProps & ExtraProps => { const pathname = usePathname(); const [targetPathname, setTargetPathname] = useState(() => pathname); useEffect(() => {