Closed huozhi closed 2 years ago
This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.
🔍 Inspect: https://vercel.com/vercel/next-rsc-news/7Mk78hePTWaxg3rAUeT6DbECSvq5
✅ Preview: https://next-rsc-news-git-error-placeholder.vercel.sh
Resolves: #34
If there're errors occurred during the data fetching in
useData
, it will return aerror
property and stops hanging. Then you can use the returnederror
to display it or do whatever you need there. e.g.If there's error occurred in topstories fetching it will display the below error. You can try to tweaks the fetching url to simulate an error