Replies: 1 comment 1 reply
-
What's worse is that it still happening that some of the queries are failing with field access on I assume it's safe to say that suspense is rather not production ready or much harder than "just wrap some stuff in Suspense". For reference, something similar happened to other Next.js experiments I did that were literally 2-3 files with some queries and still I've encountered similar freezes in production builds (in development too, but I blame Jotai (jotai-urql binding that I've built, it only happened with it and not URQL default bindings, but probably as I got lucky), not URQL in this case). So maybe it's Next.js + URQL that is not working well, maybe something else, but I definitely struggle with it a lot when using suspense... |
Beta Was this translation helpful? Give feedback.
-
In development this error is not occurring but for production build in some 100% reproducible (appearing 100% of the time, not random) scenarios app just completely stucks on redirect which potentially suspenses some big chunk of the UI.
As if URQL or React gets into an infinite loop. Browser cursor stuck, dev tools profiling cannot get the results back of the profiling etc.
Tab becomes completely non-responsive (dev tools are responsive, but all UI is not) as you cannot refresh the page or navigate using buttons.
At the same time, If you change the sequence of actions to open something different, then return and click on the same thing, it works just fine.
It makes me believe suspense is VERY unstable still. And what's worse is that it only happens on production builds, there is no way to reproduce that in development.
Beta Was this translation helpful? Give feedback.
All reactions