TanStackT
TanStack5mo ago
16 replies
embarrassing-maroon

Leaflet integration issue

Hi there,

I'm trying to use leaft & react-leaflet and struggling on the SSR behavior. I tried to wrap the map with the ClientOnly component but it does not work. Is this because the library is still loaded/evaluated during the SSR ?

Next.js use the dynamic import system but is there an equivalent for the router ?
How to handle this case correctly ?

Thanks !
Was this page helpful?