Skip to main content

Instalation

Basic Usage

Options

Return Value

Advanced Examples

With URL Synchronization

Keep your filters in sync with the URL so users can bookmark and share filtered views:

With Persistence

Save filter state to localStorage:

Building Query Strings

The hook expects you to build the query string for your API. Here’s a helper function:

Type Safety

The hook provides full type safety for your filters and sorting: