Art · Search params & storage
0 modules · 0 exports · 1 repository · 2 e2e tests · 2 routes
The state Art 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 artSearchParams
app/features/art/art-search-params.ts:10
| Param | Value | Default | Loader | Description |
|---|---|---|---|---|
tag | v.nullable(v.string()) | null | true | |
tab | v.picklist([ART_TABS.RECENTLY_UPLOADED, ART_TABS.SHOWCASE]) | ART_TABS.RECENTLY_UPLOADED | false | |
open | v.boolean() | false | false |
Used in art-urls.tsart.server.tsart.tsx
URL artGridSearchParams
app/features/art/art-search-params.ts:19
| Param | Value | Default | Loader | Description |
|---|---|---|---|---|
big | v.nullable(v.pipe(v.number(), v.integer(), v.gtValue(0))) | null | false |
Used in art-urls.tsArtGrid.tsx
URL artNewSearchParams
app/features/art/art-search-params.ts:25
| Param | Value | Default | Loader | Description |
|---|---|---|---|---|
art | v.nullable(v.pipe(v.number(), v.integer(), v.gtValue(0))) | null | true |
Used in art-urls.tsart.new.server.ts