This article will show how to use React Suspense with SWR and the pros/cons and caveats of this pattern.
React Suspense is an excellent feature for managing data fetching status in a declarative way.
It might be a solid choice to use third-party data fetching libraries like SWR that support Suspense to handle data caching.
Suspense introduces a new data loading pattern. It may take some time to get used to, especially when you’re trying to use Suspense along with some traditional data loading approaches in an MVP architecture. …