next-batch-router
Version:
An alternative to next/router that batches push and replace calls. It allows for multiple pushes without overwriting each other.
11 lines (10 loc) • 385 B
TypeScript
import { ReactNode } from "react";
import { BatchRouter } from "./BatchRouterCore";
declare type Props = {
children?: ReactNode | undefined;
};
/** Provider required to use useBatchRouter hook */
export declare function BatchRouterProvider(props: Props): JSX.Element;
/** Get the BatchRouter instance. */
export declare function useBatchRouter(): BatchRouter;
export {};