Preload query does not work with dynamicIO

If you enable dynamicIO in the Next.js canary channel and try to preload a query you get this error:
[ Server ] Error: Route "/" used `Math.random()` outside of `"use cache"` and without explicitly calling `await connection()` beforehand. See more info here: https://nextjs.org/docs/messages/next-prerender-random
[ Server ] Error: Route "/" used `Math.random()` outside of `"use cache"` and without explicitly calling `await connection()` beforehand. See more info here: https://nextjs.org/docs/messages/next-prerender-random
No description
1 Reply
ballingt
ballingt•2mo ago
Oh interesting, we're working on Next.js 15 support now. thanks for reporting