T
TanStack13h ago
environmental-rose

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}>
const { data } = await useSession<{userId: string; age: number}>
here the type of data is Partial<{userId: string; age: number}>
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?