IceAge2OnDVD
Next cookies() not being set on Mutation in App Dir (T3 Turbo)
Trying to set cookies inside TRPC using Nextjs App Router, using the T3 Turbo setup.
Setting cookies works fine inside Queries, but cookies are not set inside Mutations. Maybe I'm doing something wrong, not very up to date with TRPC + App Dir, or it could be a bug in next, not sure.
After calling both the query and the mutation on frontend you only get the cookie from the Query.
But this gets logged to console.
(this is after calling the query first then the mutation.)
19 replies