Open bnohad opened 1 week ago
2 (using CLI)
NextUI projects initialized with: nextui init my-nextui-app have bad behavior with suspense / query params.
nextui init my-nextui-app
i've created 2 repos to demonstrate the problem:
NextUI live demo: https://queryparams-notworking.vercel.app/?dothis=ok&whendothis=soonokay&whynotnow=okay
Vanilla Next.js live demo: https://queryparams-notworking-vanila.vercel.app/?dothis=ok&whendothis=soonokay&whynotnow=okay
https://queryparams-notworking.vercel.app/?dothis=ok&whendothis=soonokay&whynotnow=okay
app/page.tsx & components/params-handler.tsx
npm run build && vercel --prod
<Suspense></Suspense>
On the other hand, the exact same logic and structure works fine in all devices when using a Vanilla Next.js project initialized by their CLI.
The app should pick up on changes of the query params / suspense block when using IOS devices.
SUB-ISSUE 1: NextUI - NOT WORKING (params are not picked up outside the suspense block)
Next.js - WORKING (params are picked up outside the suspense block)
Safari
ENG-1089 [BUG] - Project initialized with `nextui init my-nextui-app` command has broken suspense / query-params behavior on IOS devices
NextUI Version
2 (using CLI)
Describe the bug
NextUI projects initialized with:
nextui init my-nextui-app
have bad behavior with suspense / query params.i've created 2 repos to demonstrate the problem:
NextUI live demo: https://queryparams-notworking.vercel.app/?dothis=ok&whendothis=soonokay&whynotnow=okay
Vanilla Next.js live demo: https://queryparams-notworking-vanila.vercel.app/?dothis=ok&whendothis=soonokay&whynotnow=okay
Your Example Website or App
https://queryparams-notworking.vercel.app/?dothis=ok&whendothis=soonokay&whynotnow=okay
Steps to Reproduce the Bug or Issue
nextui init my-nextui-app
app/page.tsx & components/params-handler.tsx
)npm run build && vercel --prod
.<Suspense></Suspense>
block.On the other hand, the exact same logic and structure works fine in all devices when using a Vanilla Next.js project initialized by their CLI.
Expected behavior
The app should pick up on changes of the query params / suspense block when using IOS devices.
Screenshots or Videos
SUB-ISSUE 1: NextUI - NOT WORKING (params are not picked up outside the suspense block)
Next.js - WORKING (params are picked up outside the suspense block)
Operating System Version
Browser
Safari