Next.js Discord

Discord Forum

Using suspense key for searchParams only working in DEV

I have been using searchParams as a key to my suspense which is working fine as when the searchParams update then the fallback component is rendering. But the problem is that in production or once build and using npm start is not triggering any Fallback component once the searchParams changes which is surprising.
PS. I have used fetch inside the component which is wrapped by the Suspense.

0 Replies