Skip to content

Art · Search params & storage

0 modules · 0 exports · 1 repository · 2 e2e tests · 2 routes

The state Art keeps in the URL and in the browser's storage. Every param has a default and never fails to decode, see Search params, and each definition should have an assertRoundTrips test. The definitions of the whole app are listed in the reference.

Search params

URL artSearchParams

app/features/art/art-search-params.ts:10

ParamValueDefaultLoaderDescription
tag v.nullable(v.string())nulltrue
tab v.picklist([ART_TABS.RECENTLY_UPLOADED, ART_TABS.SHOWCASE])ART_TABS.RECENTLY_UPLOADEDfalse
open v.boolean()falsefalse

Used in art-urls.tsart.server.tsart.tsx

URL artGridSearchParams

app/features/art/art-search-params.ts:19

ParamValueDefaultLoaderDescription
big v.nullable(v.pipe(v.number(), v.integer(), v.gtValue(0)))nullfalse

Used in art-urls.tsArtGrid.tsx

URL artNewSearchParams

app/features/art/art-search-params.ts:25

ParamValueDefaultLoaderDescription
art v.nullable(v.pipe(v.number(), v.integer(), v.gtValue(0)))nulltrue

Used in art-urls.tsart.new.server.ts