Fetch requests
A minimal fetch-on-click:
- URL selections push into a
Subject. switchMapruns the fetch and cancels any in-flight one.distinctUntilChangedskips repeat clicks on the same URL.
For production-shaped fetching, see offline-resilient fetch (retry, backoff, pause and resume) and Suspense data fetching (loading UI as a Suspense fallback).
Last updated on