Closed goscha01 closed 3 years ago
I'm not sure this is connected to pigeon-maps (please correct me). The Marker
component does use one useState
hook, but that normally doesn't trigger such an error. You could inadvertently have more than one copy of React in your app, causing this issue.
If you can provide any more details or a reproducible test case, please reopen the issue.
If I use my app works well and a map is rendered.
However, if I try to use I get the errors:
react.development.js:1476 Uncaught Error: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
index.js:1 The above error occurred in the component: