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

Tanstack Start Supabase Auth documentation is broken #3831

Open
mRaffaello opened this issue Mar 22, 2025 · 0 comments
Open

Tanstack Start Supabase Auth documentation is broken #3831

mRaffaello opened this issue Mar 22, 2025 · 0 comments

Comments

@mRaffaello
Copy link

mRaffaello commented Mar 22, 2025

Which project does this relate to?

Router

Describe the bug

Which project does this relate to?

Start

Describe the bug

This Supabase Auth + Tanstack start is currently half broken.
There seems to be two major problems:

  1. In the fetchUser (__root.tsx) server function, it is returned directly data.user that cointains non-serializable values. Here it's sufficient to no return the entire object
  2. When the page loads the getSupabaseServerClient function causes an hydration error

Additionally

  1. In __root.tsx getSupabaseServerClient does not need to be awaited

Your Example Website or App

https://tanstack.com/start/latest/docs/framework/react/examples/start-supabase-basic

Steps to Reproduce the Bug or Issue

  1. Go to the example site page
  2. Open it with code sandbox
  3. Open the console and reload the page

Expected behavior

There should not be any errors with tsc when cloning the template and there should not be an hydration error when the page loads

Screenshots or Videos

No response

Platform

  • OS: [e.g. macOS, Windows, Linux]
  • Browser: [e.g. Chrome, Safari, Firefox]
  • Version: [e.g. 91.1]

Additional context

No response

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

No branches or pull requests

1 participant