Client and Server code mixing and I don't know how - TanStack