toClientSavedListViewConfig
toClientSavedListViewConfig<
TFieldSlug>(view):VexClientViewConfig<TFieldSlug>
Defined in: packages/core/src/collections/savedListViews/toClientSavedListViewConfig.ts:42
Converts a full VexViewConfig (a default or config view resolved
from admin.view/admin.views, where intact) into the VexClientViewConfig shape UI code is allowed to read (Decision 25).
Called CLIENT-SIDE only — by useSavedListViews (Step 12), once per
default/config-source view read straight off the bundled
VexClientConfig. state.where already shipped to the browser as
plain JS before this ever runs (Decision 25: hidden from the UI, not
secret, like an access rule) — this function doesn’t keep where out
of the bundle, it keeps UI CODE from reading it, so the filter builder,
chips, and every other control only ever see
hasHiddenFilter/hiddenFilterCount. Step 7’s listViews query never
calls this — it returns shared views only. To actually QUERY a
default/config view, the list calls composeSavedListViewWhere on the RAW
VexViewConfig, not on this function’s output.
Type Parameters
Section titled “Type Parameters”TFieldSlug
Section titled “TFieldSlug”TFieldSlug extends string = string
Parameters
Section titled “Parameters”VexViewConfig<TFieldSlug>
The full config-source view, where intact.
Returns
Section titled “Returns”VexClientViewConfig<TFieldSlug>
The client-safe view: where replaced by hasHiddenFilter
(whether where was set) and hiddenFilterCount (its leaf-condition
count).