Skip to content

isSearchFieldValid

isSearchFieldValid(props): boolean

Defined in: packages/core/src/collections/listView/listViewQueryState.ts:112

Whether field is one of the collection’s own declared admin.view.state.searchFields — same staleness reasoning, and same cross-package reuse, as isSortFieldValid.

CollectionConfig

string | undefined

boolean

true when field is undefined or is listed in collection.admin.view.state.searchFields; false otherwise.