Search params & storage
The state the app keeps in the URL and in the browser's storage: 62 search params definitions (SearchParams.define, see Search params) and 27 web storage definitions (PersistedState.define / defineMap of app/modules/persisted-state). A feature's definitions are on its own Search params & storage page, those of shared code below. Each should have an assertRoundTrips test, definitions no test imports are marked.
By feature
app/components
sessionStorage maintenanceReloadedAtPersisted
app/components/Catcher.tsx:27Not exportedNo round-trip test
| Key | maintenanceReloadedAt |
|---|---|
| Value | v.number() |
| Default | 0 |
Used in Catcher.tsx (own file)
URL weaponLandingSearchParams
app/components/weapon-landing-search-params.ts:6
| Param | Value | Default | Loader | Description |
|---|---|---|---|---|
category | v.nullable( v.picklist([ ...weaponCategories.map((category) => category.name), "SUBS", "SPECIALS", ]), ) | null | false |
Used in WeaponLanding.tsxanalyzer-search-params.tsWeaponBuildsLayout.tsxbuilds.tsxcalculator-search-params.ts
app/components/layout
localStorage searchTypePersisted
app/components/layout/global-search-persisted.ts:11
| Key | global-search-search-type |
|---|---|
| Value | v.picklist(GLOBAL_SEARCH_TYPES) |
| Default | "weapons" |
Used in GlobalSearch.tsx
localStorage recentWeaponsPersisted
app/components/layout/global-search-persisted.ts:18
| Key | command-palette-recent-weapons |
|---|---|
| Value | v.array(numericEnum(mainWeaponIds)) |
| Default | [] |
Used in global-search-persisted.ts (own file)
URL globalSearchSearchParams
app/components/layout/global-search-search-params.ts:16
| Param | Value | Default | Loader | Description |
|---|---|---|---|---|
search | v.nullable(v.picklist(["open"])) | null | false | |
type | v.nullable(v.picklist(GLOBAL_SEARCH_TYPES)) | null | false | |
weapon | v.nullable(numericEnum(mainWeaponIds)) | null | false |
Used in GlobalSearch.tsxindex.tsx
URL authErrorSearchParams
app/components/layout/layout-search-params.ts:5No round-trip test
| Param | Value | Default | Loader | Description |
|---|---|---|---|---|
authError | v.nullable(v.string()) | null | false |
Used in AuthErrorDialog.tsxindex.tsx
app/components/match-page
URL matchPageSearchParams
app/components/match-page/match-page-search-params.ts:14
| Param | Value | Default | Loader | Description |
|---|---|---|---|---|
tab | v.nullable(v.picklist(MATCH_PAGE_TABS)) | null | false |
Used in MatchTabs.tsxTournamentMatchActionTab.tsxTournamentMatchScheduleTab.tsx
app/form
URL formSearchParams
app/form/form-search-params.ts:5
| Param | Value | Default | Loader | Description |
|---|---|---|---|---|
step | v.nullable(v.pipe(v.string(), v.maxLength(100))) | null | false | Name of the current step of a multi-step form, |
Used in SendouForm.tsx
app/hooks
localStorage recentlyReportedWeaponsPersisted
app/hooks/useRecentlyReportedWeapons.ts:10
| Key | sq__recently-reported-weapons |
|---|---|
| Value | v.array(numericEnum(mainWeaponIds)) |
| Default | [] |
Used in useRecentlyReportedWeapons.ts (own file)
sessionStorage reloadedForCommitPersisted
app/hooks/useReloadOnNewDeploy.ts:6Not exportedNo round-trip test
| Key | reloadedForCommit |
|---|---|
| Value | v.string() |
| Default | "" |
Used in useReloadOnNewDeploy.ts (own file)
sessionStorage revealedTournamentsPersisted
| Key | spoilerFreeRevealed |
|---|---|
| Value | v.array(v.number()) |
| Default | [] |
Used in useSpoilerFree.ts (own file)
localStorage seenFriendRequestsPersisted
app/hooks/useUnseenFriendRequests.ts:8
| Key | seen-friend-requests |
|---|---|
| Value | v.array(v.number()) |
| Default | [] |
Used in useUnseenFriendRequests.ts (own file)
app/modules/i18n
URL languageSearchParams
app/modules/i18n/i18n-search-params.ts:7
Switches the site's language or the language of in-game names, read by the i18n middleware on any page
| Param | Value | Default | Loader | Description |
|---|---|---|---|---|
lng | v.nullable(v.picklist(languages.map((lang) => lang.code))) | null | true | |
gameLng | v.nullable(v.picklist(gameLanguages.map((lang) => lang.code))) | null | true |
Used in LocaleTab.tsxDraftActions.tsxi18next.server.tsroot.tsx
changelog
URL changelogSearchParams
app/features/changelog/changelog-search-params.ts:7
| Param | Value | Default | Loader | Description |
|---|---|---|---|---|
since | v.nullable(v.pipe(v.string(), v.regex(COMMIT_SHA_PATTERN))) | null | true |
Used in changelog-image.server.ts