Skip to content
RED SAG Skills
hardStudy question · answer published in React interview questions, so no pointsreactreact-19suspense

use() that suspends forever

This client component keeps showing the Suspense fallback and refetches in a loop. Why?

function Orders() {
  const orders = use(fetch("/api/orders").then((r) => r.json()))
  return <List items={orders} />
}
Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions