Controlling Apollo inflight request's using AbortController
API
This project is to illustrates the example to cancel the Apollo request using AbortController thus preventing duplicates for the same request.
Read this blog to understand the codebase.
Important files to watch for:
- Core library- cancelRequest.ts
- Component usage - login.tsx
- Final middleware wiring - index.tsx
This is the fullstack app for the Apollo tutorial. ๐
The app is split out into two folders:
start
: Starting point for the tutorialfinal
: Final version
From within the start
and final
directories, there are two folders (one for server
and one for client
).
To run the app, run these commands in two separate terminal windows from the root:
cd final/server && npm i && npm start
and
cd final/client && npm i && npm start