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 client-side helpers #1711

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

wobsoriano
Copy link
Member

@wobsoriano wobsoriano commented Nov 15, 2024

Explanation:

  • We are launching an official Vue SDK for Clerk! 🎉
  • We need to showcase how to use built-in composables (or what they call hooks in React)
  • You will notice that all of the pages mirror the React client-side helpers. I thought of just adding a message somewhere saying that the Vue SDK provides equivalent functionality through composables, but created dedicated Vue pages since not all Vue developers use React

This PR:

  • Adds client helpers (useAuth(), useClerk(), useUser(), useSignIn()) specific for Vue (basically a copy pasta of the React SDK client-side helpers but using Vue instead)
  • You'll notice the return types look like this (Ref<boolean>), that just means the variable is a Vue ref

Checklist

  • I have clicked on "Files changed" and performed a thorough self-review
  • I have added the "deploy-preview" label and added the preview link(s) to this PR description
  • All existing checks pass

Copy link

Hey, here’s your docs preview: https://clerk.com/docs/pr/1711

@wobsoriano wobsoriano changed the title feat(vue): Add client helpers (useAuth, useClerk, useUser) feat(vue): Add client-side helpers Nov 15, 2024
@wobsoriano wobsoriano marked this pull request as ready for review November 15, 2024 03:25
@wobsoriano wobsoriano requested a review from a team as a code owner November 15, 2024 03:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant