TanStackT
TanStack9mo ago
9 replies
endless-jade

`HydrationBoundary` won't pass **some** data

in my query config i have several keys
export const queryKeys = {
  cookies: ['cookies'],
  entity: (id: string | undefined) => ['entity', id],
  period: (id: string | undefined) => ['period', id],
  //
  groupSchedule: (groupId: string, periodId: string) => ['schedules', 'group', groupId, 'period', periodId],
  tutorSchedules: (tutorId: string, periodId: string) => ['schedules', 'tutor', tutorId, 'period', periodId],
  tutors: ['tutors'],
  groups: ['groups'],
  periods: ['periods'],
} as const

the issue part is cookies - for some reason it is populated on the server but not present on the client, making client components refetch it (see the video)
Was this page helpful?