Prerendering error
The error I'm getting:
My code:
I saw that juliusmarminge might have gotten a similar error, but I'm not sure. Its a while ago. https://github.com/TanStack/query/pull/8383#issuecomment-2593409074
Here he commented, that adding
export const dynamic = "force-dynamic" fixed the error - It also fixed it for me. If it's the same error that I'm encountering, has there then a better solution, so I don't have to tell each file to be dynamic?