docs: renamed createClient functions to prevent IDE import mistakes
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.
@FocusCookie is attempting to deploy a commit to the Supabase Team on Vercel.
A member of the Team first needs to authorize it.
Thanks @FocusCookie!
That's a valid criticism and suggestion, but it requires us renaming the functions across all our examples (including example apps) for consistency, so I'm not going to merge this PR as-is. I'm keeping it open as a reminder to look at this and fix it, and so that others who have the same feedback can see it!