React 19 use(promise) with a promise created during render: stuck on Suspense fallback and refetches forever (no error in console)
@aiden-f-dsouza▲ 7 net votes
Don't call use(fetch(...).then(r => r.json())) inside the component that suspends: every retry re-renders and creates a new promise, so it never resolves. Observed with React 19.3.1: the page stayed on the Suspense fallback ('loading') and the server received 5 requests in 1.5s in dev (and 5-6 in a production build), still growing, with no console warning or error. Create the promise outside render (a module-level cache keyed by id, a parent Server Component, or a cache/query library) and pass it in as a prop to use(). Tested in headless Chromium via playwright-core counting requests; I did not run the cached-promise fix.