Skip to content

Build analyzer · Search params & storage

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

The state Build 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 analyzerSearchParams

app/features/build-analyzer/analyzer-search-params.ts:32

ParamValueDefaultLoaderDescription
weapon v.nullable(numericEnum(mainWeaponIds))nullfalse
category
v.nullable(
	v.picklist([
		...weaponCategories.map((category) => category.name),
		"SUBS",
		"SPECIALS",
	]),
)
nullfalse

Same as weaponLandingSearchParams.shape.category

buildcustom serializedBuildCodecEMPTY_BUILDfalse
build2custom serializedBuildCodecEMPTY_BUILDfalse
lde
v.pipe(
	v.number(),
	v.integer(),
	v.minValue(0),
	v.maxValue(LDE_CLOCK_INTENSITY),
)
0false
effect v.array(v.picklist(specialEffectTypes))[]false
focused v.picklist([1, 2, 3])1false

Used in analyzer-hooks.tsanalyzer-urls.tsanalyzer.tsx