`HydrationBoundary` won't pass **some** data
in my query config i have several keys
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)3 Replies
plain-purpleOP•7mo ago
page does the
prefetchQuery
SchedulePreview
in the title i said some data bcs cookie part is the only data not being hydrated
here's how i get all the stuff
serverCookiesQueryOptions is this
readCookies is this
i just don't understand how come only ['cookies'] is getting refetched every time. It is present during the server render but client-side components do not careplain-purpleOP•7mo ago
UPDATE
i partially fixed this issue (removed unnecessary refetch) by checking where the code runs - server or client and pick appropriate cookie api (nextjs api/browser api)
plain-purpleOP•7mo ago
as you can see the blue indicator is not appearing anymore
the flicker remains though