better-auth-ui & Tanstack Start query issue

@daveycodez I'm trying to setup better-auth-ui with tanstack start and tanstack query.
I followed exactly whats on the docs and the issue is when i log in and it re-directs me to "/" which i set in the redirectTo="/" of AuthView, using the tanstack query devtools the ["session"] data is always null. if i have the redirectTo="/dashboard" set, then it does have the data. So something to do with the home page that it resets the data to null. any idea? Thank you
Was this page helpful?