Documentation

Diagnostics

Inspect parse diagnostics before trusting URL input.

Parsing returns both filters and diagnostics. Diagnostics let the application notice unsupported fields, unsupported operators, or values that could not be parsed according to the schema.

const { filters, diagnostics } = parse(location.search, schema);

Use diagnostics for logging, development warnings, or user-facing recovery when URL state is user editable.