nothing
@foxliiiii
How to use useSWR()? useSWR can cache the fetched data, so you don't need to rerender the same data every time.
1 reply
0 recast
0 reaction
nothing
@foxliiiii
If you use an useEffect inner async function to fetch data and then set it to a useState variable, the page will render the initial state value first and then render the true data. This results in a bad user experience (UX).
0 reply
0 recast
0 reaction