Skip to content

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

ParamValueDefaultLoaderDescription
pagepage 1true
weapon v.nullable(numericEnum(mainWeaponIds))nulltrue

Resets page

mode v.nullable(modeShort)nulltrue

Resets page

stageId v.nullable(numericEnum(stageIds))nulltrue

Resets page

type v.nullable(v.picklist(videoMatchTypes))nulltrue

Resets page

Used in vods.server.tsvods.tsx

URL vodsNewSearchParams

app/features/vods/vods-search-params.ts:30

ParamValueDefaultLoaderDescription
vod v.nullable(v.pipe(v.number(), v.integer(), v.gtValue(0)))nulltrue
ingestjson v.nullable(ingestVodPrefillSchema)nulltrue

Compressed

Used in sendou-upload.tsvods.new.server.tsvods-urls.ts

URL vodsVodSearchParams

app/features/vods/vods-search-params.ts:40

ParamValueDefaultLoaderDescription
start v.pipe(v.number(), v.integer(), v.minValue(0))0false

Used in vods.$id.tsx

URL userVodsSearchParams

app/features/vods/vods-search-params.ts:47

ParamValueDefaultLoaderDescription
pagepage 1true

Used in u.$identifier.vods.server.tsu.$identifier.vods.tsx