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

docs: renamed createClient functions to prevent IDE import mistakes #26275

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

FocusCookie
Copy link

I have read the CONTRIBUTING.md file.

YES

What kind of change does this PR introduce?

docs update

What is the current behavior?

The next current examples for the usage of the several createClients in the
nextjs & @supabase/ssr examples could lead to potential miss imports of the wrong createClient for a given situation.

For example, an import of the createClient from the client.ts in a server component will not throw an error. This potentially causing unexpected behavior.

I had that issue for hours, and I was wondering why my RLS is not working as I expected.

What is the new behavior?

The doc file is being updated in order that every createClient for the instructed files has a unique name.

Feel free to include screenshots if it includes visual changes.

Copy link

vercel bot commented May 13, 2024

@FocusCookie is attempting to deploy a commit to the Supabase Team on Vercel.

A member of the Team first needs to authorize it.

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.

None yet

1 participant