Remixing Usability with performance
summary
Argues optimistic mutations make the UI feel instantaneous by applying the change locally and letting the backend confirm or rollback, demonstrated with a Remix demo using useTransition/useFetcher (loader + action flow) and a Next.js demo using react-query optimistic mutations with getServerSideProps; shows a to‑do app that prepends items, rolls back on error using cached previous state, and revalidates afterward, plus a fallback implemented as an XState state machine; demos work and expose retry and rollback behavior.
AI-written summary · about
chapters (15)
- 0:00Introduction to talk
- 1:25Design usability fundamentals
- 3:12Performance impact on usability
- 6:42Optimistic mutations explained
- 11:24React and Remix overview
- 12:49Remix loader and action functions
- 14:13useTransition for optimistic UI
- 17:21Live demo with Remix
- 19:31useFetcher for non-navigations
- 23:46Optimistic mutations beyond Remix
- 24:28Next.js with React Query
- 26:57Custom hook for optimistic mutations
- 29:26Live demo with React Query
- 31:55Vanilla JS with XState
- 33:23Key takeaways and conclusion
