#Next.js - SSR Hydration Error

7 messages · Page 1 of 1 (latest)

primal cypress
#

Hi, i've followed the mantine setup guide for next.js, built out my project, however on the first page i'm using SSR on, an error "Error: Hydration failed because the initial UI does not match what was rendered on the server." appears. When there is no data to load, this error disappears, suggesting to me it is due to random mantine class names.

primal cypress
#

@woven valley

primal cypress
#

i’m pretty sure my project matches the template

primal cypress
#

@woven valley do I need to use custom emotion cache if i'm not using any modifications to it?

primal cypress
#

i thought so - i've tested my page out and it looks like the only time i get the hydration error is when i use mantine components in the SSR component. How do I preset class names in this instance?