Sam Samskies
Sam Samskies
I finally got a chance to look into this more. I found a workaround that works and is recommended by Zeit. https://github.com/zeit/next.js/wiki/FAQ ```js // instead of doing this // import...
@milinpaul thanks for the tip! Also, I have a PR (https://github.com/tristen/suggestions/pull/42) open with the `suggestions` library to fix this error. Feel free to +1 the PR 😀
My PR with the `suggestions` library has been merged! Now I need to file an issue with `@mapbox/mapbox-gl-geocoder` to get them to upgrade the dependency. Once they do that I...
Made a PR with `@mapbox/mapbox-gl-geocoder` to upgrade the `suggestions` dependency https://github.com/mapbox/mapbox-gl-geocoder/pull/403
Sorry, no plans. It's possible that I'll do it at some point, but it probably won't be anytime soon. I usually suggest people just copy pasta the code and modify...
Hey @uebriges, you need to pass `mapRef` as a `ref` to `ReactMapGL`. The geocoder uses that handle to access the Mapbox map instance from the React Map GL instance.
I believe this is a duplicate issue https://github.com/SamSamskies/react-map-gl-geocoder/issues/132. Please close this issue if that's the case. Thanks.
https://github.com/SamSamskies/react-map-gl-geocoder/issues/50
Hi @MuhammadJafarFA17BCS054, you are already memoizing the `handleViewportChange` function. However, you are not memoizing the function that you are passing to the `filter` prop. All objects and functions that are...
You can use the `useCallback` hook to memoize functions. Without that a new function is created on every render which causes the geocoder to be re-initialized. Another solution would be...