Skip to content

Commit

Permalink
Add deprecation and explanation notice to composable
Browse files Browse the repository at this point in the history
Co-authored-by: Zack Krida <[email protected]>
  • Loading branch information
sarayourfriend and zackkrida authored Feb 27, 2024
1 parent 683da43 commit 1f86352
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions frontend/src/composables/use-analytics.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
import { useContext } from "@nuxtjs/composition-api"

/**
* This wrapper around the plugin, retained to reduce code churn.
*
* @deprecated For new code, use `$sendCustomEvent` from Nuxt context
* @see {@link ~/plugins/analytics.ts} for plugin implementation

Check failure on line 7 in frontend/src/composables/use-analytics.ts

View workflow job for this annotation

GitHub Actions / Lint files

tsdoc-missing-reference: Expecting a declaration reference
*/
export const useAnalytics = () => {
const { $sendCustomEvent } = useContext()

Expand Down

0 comments on commit 1f86352

Please sign in to comment.