User card · Search params & storage
0 modules · 0 exports · 1 repository · 5 e2e tests · 3 routes
The state User card 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 userCardEditSearchParams
app/features/user-card/user-card-search-params.ts:5
| Param | Value | Default | Loader | Description |
|---|---|---|---|---|
returnTo | v.nullable( v.pipe( v.string(), v.check((value) => value.startsWith("/") && !value.startsWith("//")), ), ) | null | true |
Used in user-card.edit.server.tsuser-card.edit.tsxuser-card-urls.ts
URL userCardFriendshipSearchParams
app/features/user-card/user-card-search-params.ts:17
| Param | Value | Default | Loader | Description |
|---|---|---|---|---|
mutuals | v.boolean() | false | true |