UNPKG

use-push-router

Version:

A custom hook that simplifies modifying the search params in Next.js

7 lines (6 loc) 325 B
import { UpdateSearchParamsArgs } from './types'; export declare const usePushRoute: () => { pushSearchParams: (params: UpdateSearchParamsArgs) => void; router: import("next/dist/shared/lib/app-router-context.shared-runtime").AppRouterInstance; searchParams: import("next/navigation").ReadonlyURLSearchParams; };