Tournament · Search params & storage
3 modules · 24 exports · 4 repositories · 23 e2e tests · 12 routes
The state Tournament 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 tournamentSearchSearchParams
app/features/tournament/tournament-search-params.ts:14
| Param | Value | Default | Loader | Description |
|---|---|---|---|---|
q | v.pipe(v.string(), v.maxLength(100)) | "" | true | |
limit | v.pipe(v.number(), v.integer(), v.minValue(1), v.maxValue(25)) | 25 | true | |
minStartTime | custom nullableCodec(isoDateCodec) | null | true | |
maxStartTime | custom nullableCodec(isoDateCodec) | null | true |
Used in TournamentSearch.tsxto.search.ts
URL tournamentJoinSearchParams
app/features/tournament/tournament-search-params.ts:30
| Param | Value | Default | Loader | Description |
|---|---|---|---|---|
code | v.nullable(v.string()) | null | true |
Used in to.$id.join.server.tsto.$id.join.server.tstournament-urls.ts
URL tournamentTeamsSearchParams
app/features/tournament/tournament-search-params.ts:34
| Param | Value | Default | Loader | Description |
|---|---|---|---|---|
page | page | 1 | true |