Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(vue): add support for composition api #1416

Merged
merged 1 commit into from
Nov 16, 2024

Conversation

subzero10
Copy link
Member

@subzero10 subzero10 commented Nov 16, 2024

Status

READY

Description

  • Adds an exported function useHoneybadger to support Vue Composition API programming style and allow manually reporting errors to Honeybadger.
  • Adds an example app created with npm create vue@latest that uses Composition API.
  • Documentation.

Closes: #1413

Usage

<script setup>
import { useHoneybadger } from '@honeybadger-io/vue'
const honeybadger = useHoneybadger()

function notify() {
  honeybadger.notify('Hello from Vue 3!')
}
</script>

@subzero10 subzero10 self-assigned this Nov 16, 2024
@subzero10
Copy link
Member Author

Note: I will also have to update documentation to mention the new useHoneybadger function.

@subzero10 subzero10 merged commit 3d99dd4 into master Nov 16, 2024
11 checks passed
@subzero10 subzero10 deleted the vue-composition-api-1413 branch November 16, 2024 16:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Vue 3 composition API support
2 participants