122 components

UseQueryParams@djangocfg/ui-nextjs

Hook for safely accessing URL query parameters without Suspense boundary

useQueryParams Hook
Safe hook to access URL query parameters without Suspense boundary

Current Query Parameters:

No query parameters

Parameter Values:

flow:(not set)
page:(not set)
tags:(not set)

Try It:

Usage:

const queryParams = useQueryParams();
const flow = queryParams.get('flow');
const page = queryParams.get('page');
const tags = queryParams.getAll('tags');
const hasFlow = queryParams.has('flow');

Import

Loading code...