React Suspense Without using Lazy
Till now i know React suspense uses promises to handle async rendering and fallback rendering which we can achieve using React.lazy for dynamic import. But i have read that we can also use suspense without lazy. But now how it work now?
And try to explain with example with Async component which uses setTimeOut which resolve promise after 2sec. and render main content after 2sec fallback ui.
How to use multiple useSWR hooks in NextJS with Suspense?
I have a NextJS project where I’m trying to use SWR to fetch data. My problem is: