TanStackT
TanStack4mo ago
4 replies
ordinary-sapphire

useSession returning partial UserSession in Start RC

I updated the dependencies to version ^1.132.47 and strangely since then useSession no longer returns the session type but a partial of the type.

const { data } = await useSession<{userId: string; age: number}> 

here the type of data is Partial<{userId: string; age: number}>
Was this page helpful?