vinayakkulkarni/v-mapbox

Injection key not exported

marr opened this issue · 2 comments

marr commented

I am trying to write a plugin, and would like to use the injected map instance. Looking through the source, I couldn't find the key exposed. Using 'map' as the key does not work. Consider accepting the key as a prop, or publishing the key in the package.

AFAIK, the provide() fn should make the map variable available across the application(s) right?

Hello, i'm having the same issue, the MapKey injection key is not exported, so we can't inject in a component