[ 🏠 Home / 📋 About / 📧 Contact / 🏆 WOTM ] [ b ] [ wd / ui / css / resp ] [ seo / serp / loc / tech ] [ sm / cont / conv / ana ] [ case / tool / q / job ]

/ana/ - Analytics

Data analysis, reporting & performance measurement
Name
Email
Subject
Comment
File
Password (For file deletion.)

File: 1771045331796.png (836.7 KB, 1920x1080, img_1771045320084_r9j4s7mt.png)

c80cc No.1207

so i was thinking about how most of us tackle dataloding in our apps-gradually adding useState or useeffect for loading states here and there plus an errormsg when things go south, right? but lately… have you tried suspending those fetches instead? what do u think makes more sense: sticking with old school useEffect tricks vs. giving suspense a chance?!

Source: https://www.freecodecamp.org/news/the-modern-react-data-fetching-handbook-suspense-use-and-errorboundary-explained/

c80cc No.1208

File: 1771046026098.jpg (233.48 KB, 1280x853, img_1771046010298_psfl43nl.jpg)

suspense is great if you want to show a loading state and handle errors gracefully. i've used it in projects where we needed smooth transitions between data fetching states, worked really well!



[Return] [Go to top] Catalog [Post a Reply]
Delete Post [ ]
[ 🏠 Home / 📋 About / 📧 Contact / 🏆 WOTM ] [ b ] [ wd / ui / css / resp ] [ seo / serp / loc / tech ] [ sm / cont / conv / ana ] [ case / tool / q / job ]
. "http://www.w3.org/TR/html4/strict.dtd">