settapak.t
settapak.t
TtRPC
Created by NeoBean on 8/20/2023 in #❓-help
Forward client headers with createTRPCProxyClient & Server-Side Helpers
@neobean
8 replies
TtRPC
Created by NeoBean on 8/20/2023 in #❓-help
Forward client headers with createTRPCProxyClient & Server-Side Helpers
my console.log('user ===>', user) /// result : undefined how fix
export async function getServerSideProps() {
const { user } = await helpers.auth.getInfoUser.fetch();
console.log('user ===>', user);
return {
props: {
trpcState: helpers.dehydrate(),
},
};
}
export async function getServerSideProps() {
const { user } = await helpers.auth.getInfoUser.fetch();
console.log('user ===>', user);
return {
props: {
trpcState: helpers.dehydrate(),
},
};
}
8 replies
TtRPC
Created by NeoBean on 8/20/2023 in #❓-help
Forward client headers with createTRPCProxyClient & Server-Side Helpers
how use ?
8 replies