-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Open
Description
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:
- 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
- When the page loads the getSupabaseServerClient function causes an hydration error
Additionally
- 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
- Go to the example site page
- Open it with code sandbox
- 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
Metadata
Metadata
Assignees
Labels
No labels