UNPKG

nuqs

Version:

Type-safe search params state manager for React - Like useState, but stored in the URL query string

24 lines (23 loc) 854 B
import "../defs-DVjFg2Y1.js"; import { n as AdapterProps } from "../context-BE-tNWKb.js"; import { ReactElement, ReactNode } from "react"; //#region src/adapters/react.d.ts declare function NuqsAdapter({ children, fullPageNavigationOnShallowFalseUpdates, ...adapterProps }: AdapterProps & { children: ReactNode; fullPageNavigationOnShallowFalseUpdates?: boolean; }): ReactElement; /** * Opt-in to syncing shallow updates of the URL with the useOptimisticSearchParams hook. * * By default, the useOptimisticSearchParams hook will only react to internal nuqs updates. * If third party code updates the History API directly, use this function to * enable useOptimisticSearchParams to react to those changes. */ declare function enableHistorySync(): void; //#endregion export { NuqsAdapter, enableHistorySync }; //# sourceMappingURL=react.d.ts.map