Skip to content

Tournament organization · Search params & storage

2 modules · 2 exports · 1 repository · 5 e2e tests · 4 routes

The state Tournament organization 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 tournamentOrganizationSearchParams

app/features/tournament-organization/tournament-organization-search-params.ts:5

ParamValueDefaultLoaderDescription
month v.nullable(v.pipe(v.number(), v.integer(), v.minValue(0), v.maxValue(11)))nulltrue
year
v.nullable(
	v.pipe(v.number(), v.integer(), v.minValue(2020), v.maxValue(2100)),
)
nulltrue
series v.nullable(v.pipe(v.number(), v.integer(), v.gtValue(0)))nulltrue
pagepage 1true
source v.nullable(v.string())nulltrue

Used in org.$slug.server.tsorg.$slug.tsxtournament-organization-urls.ts