How to refetch data in Next js 15+ with React.use() hook?
Answered
Sun bear posted this in #help-forum
Sun bearOP
Hello there, how we can refetch data like each 5s. So it should make request to fetch new data each 5s, My code on the screens
Answered by B33fb0n3
for that you should use a clientside fetching library like SWR or React Query. I like to use React Query
Btw: the
Btw: the
use
just awaits the promise (not making new calls)