ThomasT
tRPC3y ago
6 replies
Thomas

Adding tRPC HOC breaks zustand

It seems that adding the trpc hoc breaks my zustand stores initial values and generates bad data.
After installing trpc following an install guide, I realized that now my zustand items don't take their initial values anymore. I am not sure why it is due. Happens both with SSR and non SSR setting.
My error is the following : (please see the image)

I am using yarn to install packages and running latest Nextjs/React.
image.png
Was this page helpful?