~/talk

Maintaining an open-source library for Next.js, feedback and tips

Talkat Fork it! Rouen 2024 · on Friday, 2024-06-07· [open-source]
slides:none on file

Maintains the nuqs library to sync React state into the URL across Next.js pages router and app router, implementing a useQueryState hook that serializes via customizable parsers, enforces TypeScript literal types, and throttles browser updates with a queue to respect the history API rate limit (about 50 milliseconds). Uses the history API pushState/replaceState, CI that triggers tests on Next.js canaries (1–5 canaries/day), and verifies behavior with Cypress end-to-end tests and Turborepo caching; it works in production.

AI-written summary · about

  1. 0:00Introduction to the talk
  2. 1:51From native code to web technologies
  3. 3:15Power of URLs in web apps
  4. 5:47Next.js routers explained
  5. 7:11Query string customization demo
  6. 8:15Deep linking with state in URL
  7. 10:02Introducing next-usequerystate
  8. 12:10Live demo of state sync
  9. 13:15Evolution of next-usequerystate
  10. 14:00Server components challenge
  11. 15:24Shallow routing limitations
  12. 16:49Browser API rate limits
  13. 17:32Throttling implementation
  14. 19:17Parsing URL state safely
  15. 21:24Reacting to URL changes
  16. 22:30Patching browser history
  17. 24:56Synchronizing state and URL
  18. 25:19Testing with Next.js Canary
  19. 26:43Importance of behavior coverage
  20. 28:11End-to-end testing with Cypress
  21. 28:52Future of next-usequerystate
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.