c6a061a88e
When there's `useSearchParams` hook triggers the bailout to client side rendering, users might hard to find where it's from since it could either from users code base or third party libraries. Adding the stack trace for it so they could at least investigate which line is throwing from the server bundle. Will improve it in the later future when we can give more insights. #### After ``` ⨯ useSearchParams() should be wrapped in a suspense boundary at page "/". Read more: https:// nextjs.org/docs/messages/missing-suspense-with-csr-bailout at a (/private/var/folders/gy/kq4zjn8s0ljf9sfjyyh_nj640000gn/T/next-install-aa5f331b7f6af2 82fd9bab0f69685454d1f50dc8f3c775da23d4e5e807a970cb/.next/server/chunks/846.js:1:9912) at h (/private/var/folders/gy/kq4zjn8s0ljf9sfjyyh_nj640000gn/T/next-install-aa5f331b7f6af2 82fd9bab0f69685454d1f50dc8f3c775da23d4e5e807a970cb/.next/server/chunks/846.js:1:22018) at a (/private/var/folders/gy/kq4zjn8s0ljf9sfjyyh_nj640000gn/T/next-install-aa5f331b7f6af2 82fd9bab0f69685454d1f50dc8f3c775da23d4e5e807a970cb/.next/server/app/page.js:1:2518) ``` #### Before ``` ⨯ useSearchParams() should be wrapped in a suspense boundary at page "/". Read more: https:// nextjs.org/docs/messages/missing-suspense-with-csr-bailout ``` Closes NEXT-2239 |
||
---|---|---|
.. | ||
dynamic | ||
layout-suspense.js | ||
layout.js | ||
page.js |