Coding task · JavaScript and React course · Module 11: Data Fetching and APIs

Practice: Preventing Race Conditions

Implement a component displaying planet details with AbortController. When the user quickly changes the planet, the previous request should be cancelled to avoid a race condition.

Task

AbortController preventing race conditions