Skip to content

parseListViewUrlState

parseListViewUrlState<TFieldSlug>(props): ListViewUrlState<TFieldSlug>

Defined in: packages/core/src/collections/listView/listViewUrlState.ts:428

Parses the collection list’s full compact-grammar URL state (Decision 9).

TFieldSlug extends string = string

Input props.

CollectionConfig

Constrains qf/sort.field to the collection’s own fields and size to admin.view.state.pageSizeOptions.

URLSearchParams

The raw q/qf/sort/filter/size/ view/peek params. A key absent from searchParams is treated the same as “not set”.

ListViewUrlState<TFieldSlug>

The parsed state. Every field is independently validated — one malformed param never affects another — and a malformed value is DROPPED (falls back to its default/undefined), never thrown.