Skip to content

Admin · Search params & storage

0 modules · 0 exports · 3 repositories · 5 e2e tests · 2 routes

The state Admin 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 adminSearchParams

app/features/admin/admin-search-params.ts:6

ParamValueDefaultLoaderDescription
friendCode v.nullable(v.pipe(v.string(), v.regex(FRIEND_CODE_REGEXP)))nulltrue

Used in admin.server.tsadmin.tsx