Skip to content

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

ParamValueDefaultLoaderDescription
statecustom tierListStateEMPTY_TIER_LIST_STATEfalse

Compressed

type tierListItemTypeSchema"main-weapon"false
title v.string()""false
showTierHeaders v.boolean()truefalse
hideAltKits v.boolean()falsefalse
hideAltSkins v.boolean()falsefalse
canAddDuplicates v.boolean()falsefalse
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

Keytier-list-maker__placement-mode
Valuev.picklist(["track", "click"])
Default"track" as TierListPlacementMode

Used in useTierList.ts (own file)