~/talk

5 Antipatterns that Made Our React/GraphQL App Slow (And How We Fixed Them)

Talkat JSWorld Conference 2024 · 2024-02-28..03-01· [react, graphql]
links:none on file
slides:none on file

Strips down GraphQL queries to remove unused fields and reduces payload and response time — a shown case cuts size by 31% payload, 22% latency — and avoids centralized bloated fragments by colocating fragments with their queries. Use server filters/pagination so a list renders with one query instead of 80+ rather than issuing per-item fetches. Use mutation return values and optimistic updates show change immediately to eliminate extra refetches. Switch to a normalized-cache client (Apollo or urql) so related UI updates automatically; loading spinners stop.

AI-written summary · about

  1. 0:00React/GraphQL performance issues
  2. 1:17Over-fetching in GraphQL
  3. 4:35Fragments causing over-fetching
  4. 7:43Under-fetching and API requests
  5. 11:53Mutation return values
  6. 16:56Optimistic updates
  7. 17:39Wrong caching library
  8. 21:06Summary
~/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.