~/talk

Handle routes data using stateless protocol (using React Router)

Talkat Heapcon 2024 · 2024-11-07..11-08· [react, frontend-architecture]
links:none on file
slides:none on file

Solution shows a concrete pattern for passing per-route data using React Router (v5/v6), storing transient values in history state and only using a persistent store (Redux) as a temporary buffer when sending data on back navigation. The demo builds a small navigation/shopping-list/todo app that passes random numbers, uses replace then push to leave a trace, uses use back to return so history stays clean, and includes cleanup of Redux after consumption. The approach works and avoids global state for normal forward/back flows.

AI-written summary · about

  1. 0:00Introduction and agenda
  2. 2:12Problem with route data loss
  3. 4:40Patterns and anti-patterns
  4. 9:19Forward navigation rules
  5. 11:47State per page approach
  6. 13:35Temporary data storage
  7. 16:04Circular navigation solution
  8. 19:15Live coding setup
  9. 24:17Demo of data preservation
  10. 28:15Summary and Q&A
~/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.