[GH-ISSUE #874] Suspense streaming doesn't seem to work with wrangler dev #194

Closed
opened 2026-05-06 12:38:02 +02:00 by BreizhHardware · 4 comments

Originally created by @LubomirGeorgiev on GitHub (Apr 23, 2026).
Original GitHub issue: https://github.com/cloudflare/vinext/issues/874

When I run my vinext app with vinext dev the Suspense blocks get resolved and I can see the initial fallback which is correct.

However if I build the app and run it with wrangler dev the longest suspense promise hangs the whole page and the fallback is never visible.

I made a reproduction repo here https://github.com/LubomirGeorgiev/vinext-next-safe-action

To reproduce it with the correct behaviour run pnpm dev and open http://localhost:3000/
To reproduce the wrong behaviour run pnpm preview and open http://localhost:8787/

Originally created by @LubomirGeorgiev on GitHub (Apr 23, 2026). Original GitHub issue: https://github.com/cloudflare/vinext/issues/874 When I run my vinext app with `vinext dev` the Suspense blocks get resolved and I can see the initial fallback which is correct. However if I build the app and run it with `wrangler dev` the longest suspense promise hangs the whole page and the fallback is never visible. I made a reproduction repo here https://github.com/LubomirGeorgiev/vinext-next-safe-action To reproduce it with the correct behaviour run `pnpm dev` and open http://localhost:3000/ To reproduce the wrong behaviour run `pnpm preview` and open http://localhost:8787/
Author
Owner

@southpolesteve commented on GitHub (Apr 24, 2026):

Thanks for the reports! I suspect this may be the same root issue https://github.com/cloudflare/workers-sdk/issues/8004

<!-- gh-comment-id:4310202413 --> @southpolesteve commented on GitHub (Apr 24, 2026): Thanks for the reports! I suspect this may be the same root issue https://github.com/cloudflare/workers-sdk/issues/8004
Author
Owner

@LubomirGeorgiev commented on GitHub (Apr 24, 2026):

@southpolesteve I just deployed it here https://vinext-nextjs.lubomirgeorgievgeorgiev.workers.dev/ and it works fine, so if this is just an issue with wrangler dev I guess it's not so critical.

Btw does that mean that wrangler dev and the cloudflare worker production environment don't run the exact same runtime underneath and it's possible that one thing could work locally but not when deployed and vice versa?

<!-- gh-comment-id:4311025636 --> @LubomirGeorgiev commented on GitHub (Apr 24, 2026): @southpolesteve I just deployed it here https://vinext-nextjs.lubomirgeorgievgeorgiev.workers.dev/ and it works fine, so if this is just an issue with `wrangler dev` I guess it's not so critical. Btw does that mean that `wrangler dev` and the cloudflare worker production environment don't run the exact same runtime underneath and it's possible that one thing could work locally but not when deployed and vice versa?
Author
Owner

@southpolesteve commented on GitHub (Apr 25, 2026):

They both use the same runtime: https://github.com/cloudflare/workerd. You should not expect any difference between local and production. If you see the attached wranglerissue it just seems that under wrangler dev it buffers larger chunks which causes issues. The team is looking into a fix.

<!-- gh-comment-id:4317787240 --> @southpolesteve commented on GitHub (Apr 25, 2026): They both use the same runtime: https://github.com/cloudflare/workerd. You should not expect any difference between local and production. If you see the attached wranglerissue it just seems that under wrangler dev it buffers larger chunks which causes issues. The team is looking into a fix.
Author
Owner

@LubomirGeorgiev commented on GitHub (Apr 25, 2026):

Thanks

<!-- gh-comment-id:4318565789 --> @LubomirGeorgiev commented on GitHub (Apr 25, 2026): Thanks
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/vinext#194
No description provided.