~/talk

Remix Flat Routes – An Evolution in Routing

Talkat Remix Conf Europe 2022 · 2022-11-17..11-18· [react, web-platform]
slides:none on file

Remix adds a separate npm package remix-flat-routes that replaces folder nesting with dot-separated filenames, resolves parent layouts by longest-prefix matching, and marks non-layout segments with a trailing underscore. Two conventions exist: flat files (single filenames) and flat folders (route folder + index/layout/page), enabling true co-location and relative imports. A migration CLI mpx migrate flat routes converts existing routes, and a server-only route file pattern keeps heavy libraries like Zod out of client bundles.

AI-written summary · about

  1. 0:00Start
  2. 3:34Goals
  3. 5:47How to Install and Configure
  4. 6:38Filename Conventions
  5. 8:36Not a Parent Layout
  6. 9:58Route Filenames
  7. 10:16Co-locating Files
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.