Skip to content

Top search · Search params & storage

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

The state Top search 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 topSearchSearchParams

app/features/top-search/top-search-search-params.ts:6

ParamValueDefaultLoaderDescription
mode v.picklist(rankedModesShort)"SZ"true
region v.picklist(["WEST", "JPN"])"WEST"true
month v.nullable(v.pipe(v.number(), v.integer(), v.minValue(1), v.maxValue(12)))nulltrue
year v.nullable(v.pipe(v.number(), v.integer(), v.minValue(2023)))nulltrue

Used in xsearch.server.tsxsearch.tsxtop-search-urls.ts