Skip to content

Leaderboards · Search params & storage

0 modules · 0 exports · 1 repository · 1 e2e test · 1 route

The state Leaderboards 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 leaderboardsSearchParams

app/features/leaderboards/leaderboards-search-params.ts:6

ParamValueDefaultLoaderDescription
type v.picklist(LEADERBOARD_TYPES)LEADERBOARD_TYPES[0]true
season v.nullable(v.pipe(v.number(), v.integer()))nulltrue

Used in leaderboards-urls.tsleaderboards.server.tsleaderboards.tsx