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).
Type Parameters
Section titled “Type Parameters”TFieldSlug
Section titled “TFieldSlug”TFieldSlug extends string = string
Parameters
Section titled “Parameters”Input props.
collection
Section titled “collection”Constrains qf/sort.field to the
collection’s own fields and size to admin.view.state.pageSizeOptions.
searchParams
Section titled “searchParams”URLSearchParams
The raw q/qf/sort/filter/size/
view/peek params. A key absent from searchParams is treated the
same as “not set”.
Returns
Section titled “Returns”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.