Reactjs – useMap() always says { current: undefined }
I am using react-map-gl for a project. The map itself renders but i can't use useMap(). It always logs { current: undefined }. Has anyone a solution? My layout.tsx contains: import { MapProvider } from "react-map-gl"; .... <div className="flex h-screen">…