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

User is not preserver after refresh #6

Closed
kandros opened this issue Jan 27, 2025 · 2 comments
Closed

User is not preserver after refresh #6

kandros opened this issue Jan 27, 2025 · 2 comments

Comments

@kandros
Copy link

kandros commented Jan 27, 2025

After a login, reloading the page doesn't present the logged in user

@dotnize
Copy link
Owner

dotnize commented Jan 27, 2025

Which TanStack Start version are you using? npm why @tanstack/start (or pnpm) or see your package.json file.

There is a bug with the latest Start version that breaks some auth stuff:

but I've pinned the template's versions to 1.95.x which shouldn't be affected by this issue.

tanstarter/package.json

Lines 20 to 23 in 4134cc5

"@tanstack/react-router": "~1.95.6",
"@tanstack/react-router-with-query": "~1.95.6",
"@tanstack/router-devtools": "~1.95.6",
"@tanstack/start": "~1.95.7",

To confirm that you're experiencing the same issue, could you navigate around to Dashboard, then back to the index page? Client-side navigations without reloads should result in the user getting loaded properly.

@kandros
Copy link
Author

kandros commented Jan 27, 2025

I was using a newer version, I started debugging and not seeing header form with the serverFn I was getting convinced it was indeed a start's issue

Thanks for the super fast reply and the project, being my goto for any project in the past weeks 🙏

@kandros kandros closed this as completed Jan 27, 2025
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

2 participants