"@mapbox/search-js-core": "1.0.0-beta.25",
"@mapbox/search-js-react": "1.0.0-beta.25",
Can only be reproduced on deployed url (works fine on local dev server)
When passing accessToken to <AddressMinimap accessToken="..." />, and navigating to a page where Minimap is rendered, the request is made with accessToken=undefined, but works correctly on subsequent re-renders (when feature changes for example). I found a workaround by setting accessToken to a config singleton at the top of the file
config.accessToken = MAPBOX_API_TOKEN
But feels like this useEffect in mapbox react code doesn't work correctly.
useEffect(() => {
if (ref.current) ref.current.accessToken = accessToken;
}, [ref.current, accessToken]);