honeybadger-js icon indicating copy to clipboard operation
honeybadger-js copied to clipboard

Vue 3 composition API support

Open spiffytech opened this issue 1 year ago • 0 comments

The Honeybadger Vue plugin does not appear to support the Vue 3 composition API.

The Honeybadger docs say to access this.$honeybadger, but components using the composition API do not have this, so there's no way to access the Honeybadger instance from a component (except the extremely-discouraged internal API, getCurrentInstance().proxy.$honeybadger)

I think the normal composition API would be for the module to export a useHoneybadger function, or possibly to use provide/inject.

spiffytech avatar Oct 25 '24 00:10 spiffytech