How can I fix this issue:
Answered
Hackberry nipple gall parasitoid posted this in #help-forum
Hackberry nipple gall parasitoidOP
Error: Route / used "revalidatePath /" during render which is unsupported. To ensure revalidation is performed consistently it must always happen outside of renders and cached functions. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering
at getAllRooms (app/actions/getAllRooms.js:18:19)
at async Home (app/page.js:7:16)
16 |
17 | // Revalidate the cache for this path
at getAllRooms (app/actions/getAllRooms.js:18:19)
at async Home (app/page.js:7:16)
16 |
17 | // Revalidate the cache for this path
18 | revalidatePath("/", "layout");| ^
Answered by Asian black bear
The error message is quite clear. Don't revalidate the path you're attempting to render at the same time.
2 Replies
Hackberry nipple gall parasitoidOP
see image
Asian black bear
The error message is quite clear. Don't revalidate the path you're attempting to render at the same time.
Answer