To use React Suspense with an async localStorage API:
- Create a Cache: Store data fetched from localStorage to avoid re-fetching.
- Async Data Fetching: Use Suspense to handle async operations when fetching from localStorage.
- Suspend on Data Fetch: Throw a Promise to trigger Suspense and display a fallback while loading.
For detailed information, check the doc
https://react.dev/reference/react/Suspense