Vods · Search params & storage
0 modules · 0 exports · 1 repository · 4 e2e tests · 3 routes
The state Vods 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 vodsSearchParams
app/features/vods/vods-search-params.ts:10
| Param | Value | Default | Loader | Description |
|---|---|---|---|---|
page | page | 1 | true | |
weapon | v.nullable(numericEnum(mainWeaponIds)) | null | true | Resets |
mode | v.nullable(modeShort) | null | true | Resets |
stageId | v.nullable(numericEnum(stageIds)) | null | true | Resets |
type | v.nullable(v.picklist(videoMatchTypes)) | null | true | Resets |
Used in vods.server.tsvods.tsx
URL vodsNewSearchParams
app/features/vods/vods-search-params.ts:30
| Param | Value | Default | Loader | Description |
|---|---|---|---|---|
vod | v.nullable(v.pipe(v.number(), v.integer(), v.gtValue(0))) | null | true | |
ingest | json v.nullable(ingestVodPrefillSchema) | null | true | Compressed |
Used in sendou-upload.tsvods.new.server.tsvods-urls.ts
URL vodsVodSearchParams
app/features/vods/vods-search-params.ts:40
| Param | Value | Default | Loader | Description |
|---|---|---|---|---|
start | v.pipe(v.number(), v.integer(), v.minValue(0)) | 0 | false |
Used in vods.$id.tsx
URL userVodsSearchParams
app/features/vods/vods-search-params.ts:47
| Param | Value | Default | Loader | Description |
|---|---|---|---|---|
page | page | 1 | true |