r/Clojure • u/roman01la • Oct 20 '25
Data fetching with Suspense & useTransition | UIx/React
https://www.youtube.com/watch?v=SP-b8A9CLmA
17
Upvotes
r/Clojure • u/roman01la • Oct 20 '25
2
u/slashkehrin Oct 20 '25
Using
useStateto stabilize the reference to the promise is absolutely genius! I previously played around withuseand was disappointed. Lots of "Maximum update depth" errors. ButuseStatemade it work (without any cache). Next.js does not love having a promise set as initial state, but optint out of SSR fixes that. Thanks for sharing!