~/talk

Optimizing API Integration in a Large React Application Using OpenAPI Generator

Talkat Voxxed Days CERN 2025 · on Wednesday, 2025-01-15· [react, open-source]
links:none on file
slides:none on file

Frontend codebase uses OpenAPI Generator to produce TypeScript models and HTTP client functions from CERN OpenAPI specs, refreshed in CI/CD, covering hundreds of endpoints. Initial pattern instantiated new API objects per call; replacement with a custom use API hook eliminates per-call instantiation, hides configuration, and returns typed functions. Controlled tests show lower memory allocation once the app has over 100 components making API calls, with only a slight unexplained uptick past ~200; overall response times and error rates improve.

AI-written summary · about

  1. 0:00Optimizing React API integration
  2. 1:29Traditional API calls in React
  3. 2:36OpenAPI Generator for TypeScript
  4. 4:27How OpenAPI Generator works
  5. 7:40Challenges with generated code
  6. 9:06Introducing useAPI hook
  7. 10:50Benefits of useAPI hook
  8. 11:12Memory optimization with useAPI
  9. 12:41Summary and future plans
~/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.