Skip to content

Comp analyzer · Search params & storage

3 modules · 19 exports · 0 repositories · 4 e2e tests · 1 route

The state Comp analyzer 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 compAnalyzerSearchParams

app/features/comp-analyzer/comp-analyzer-search-params.ts:16

ParamValueDefaultLoaderDescription
categorization v.picklist(CATEGORIZATION_TYPES)"category"false
weapons v.pipe(v.array(numericEnum(mainWeaponIds)), v.maxLength(MAX_WEAPONS))[]false
singleCombos v.boolean()falsefalse
subDef v.pipe(v.number(), v.integer(), v.minValue(0), v.maxValue(MAX_AP))0false
res v.pipe(v.number(), v.integer(), v.minValue(0), v.maxValue(MAX_AP))0false

Used in comp-analyzer-hooks.ts