JustFly1984 / react-google-maps-api

React Google Maps API
MIT License
1.79k stars 438 forks source link

Error when navigate from every page that integrating google to another one and vice versa Failed to execute 'removeChild' on 'Node': The node to be removed is not a child of this node. #3302

Open nthieu1332002 opened 11 months ago

nthieu1332002 commented 11 months ago

It is same as issue

image

JustFly1984 commented 11 months ago

@nthieu1332002 Sorry, but I've never tested on nextjs. This library works only in client components. you should render it conditionally, preferable on user action, or useLayoutEffect. There is a gatsby.js example in the repo.