Infinite Query crashes Next.js router
so long story short,
when I use the infinite query, cursor based pagination version of the query here, my next.js router crashes. like flat out dies. I have to kill the process manually via PID, it's wild.
If i use the normal non cursor paginated version, then it works fine.
I'd like to be able to use cursor based pagination,
what makes matters more confusing, is it works totally fine with another infinite query, but with a different prisma object, even the same code structure for the query itself.
I'm genuinely at a loss for what could be causing this. I'm starting to think it's something in prisma?
Queries to follow as I don't have nitro
1 Reply
Failing Query
This one is fine: