Tier list maker · Search params & storage
0 modules · 0 exports · 0 repositories · 3 e2e tests · 1 route
The state Tier list maker 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 tierListMakerSearchParams
app/features/tier-list-maker/tier-list-maker-search-params.ts:38
| Param | Value | Default | Loader | Description |
|---|---|---|---|---|
state | custom tierListState | EMPTY_TIER_LIST_STATE | false | Compressed |
type | tierListItemTypeSchema | "main-weapon" | false | |
title | v.string() | "" | false | |
showTierHeaders | v.boolean() | true | false | |
hideAltKits | v.boolean() | false | false | |
hideAltSkins | v.boolean() | false | false | |
canAddDuplicates | v.boolean() | false | false | |
modes | v.array(modeShort) | [...rankedModesShort] | false |
Used in useTierList.tstier-list-maker-utils.tsWidget.tsx
Web storage
localStorage placementModePersisted
app/features/tier-list-maker/hooks/useTierList.ts:37Not exportedNo round-trip test
| Key | tier-list-maker__placement-mode |
|---|---|
| Value | v.picklist(["track", "click"]) |
| Default | "track" as TierListPlacementMode |
Used in useTierList.ts (own file)