Skip to content

Build stats · Search params & storage

0 modules · 0 exports · 0 repositories · 0 e2e tests · 2 routes

The state Build stats 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 buildStatsSearchParams

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

ParamValueDefaultLoaderDescription
date
v.nullable(
	v.picklist([ANY_TIME, ...RECENT_PATCHES.map((patch) => patch.date)]),
)
nulltrue

YYYY-MM-DD the builds were updated after, null lets the loader pick (see DEFAULT_UPDATED_SINCE).

Used in BuildStatsDateFilter.tsxbuilds.$slug.popular.server.tsbuilds.$slug.stats.server.tsbuilds.$slug.popular.tsxbuilds.$slug.stats.tsxWeaponBuildsLayout.tsx