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 committed Feb 27, 2024
1 parent 683da43 commit c743833
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.
* @see Refer to frontend/src/plugins/analytics.ts for plugin implementation
*
* @deprecated For new code, use `$sendCustomEvent` from Nuxt context
*/
export const useAnalytics = () => {
const { $sendCustomEvent } = useContext()

Expand Down

0 comments on commit c743833

Please sign in to comment.