Skip to content

Params · Search params & storage

1 module · 11 exports · 0 repositories · 2 e2e tests · 1 route

The state Params 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 weaponParamsSearchParams

app/features/params/params-search-params.ts:7

ParamValueDefaultLoaderDescription
tab v.picklist(["params", "patches"])"params"false
hidden v.array(v.pipe(v.number(), v.integer()))[]false
kit v.nullable(numericEnum(mainWeaponIds))nullfalse
kitExtras v.boolean()truefalse

Used in WeaponParamsTable.tsxWeaponParamsView.tsxWeaponPatchHistory.tsx