mid
mid
TTCTheo's Typesafe Cult
Created by mid on 4/11/2023 in #questions
useSession must be wrapped in a <SessionProvider />
I've a;sp tried const layout = getLayout(<Component {...pageProps} />);
16 replies
TTCTheo's Typesafe Cult
Created by mid on 4/11/2023 in #questions
useSession must be wrapped in a <SessionProvider />
@create-t3-maintainer @Theo-Ish @Moderator
16 replies
TTCTheo's Typesafe Cult
Created by mid on 2/16/2023 in #questions
How to setup grapql(t3 stack) with typeschecking?
It it because we can add and remove fields from therefore this method is not a good idea?
10 replies
TTCTheo's Typesafe Cult
Created by mid on 2/16/2023 in #questions
How to setup grapql(t3 stack) with typeschecking?
@cje @erik.gh
10 replies
TTCTheo's Typesafe Cult
Created by mid on 2/16/2023 in #questions
How to setup grapql(t3 stack) with typeschecking?
10 replies
TTCTheo's Typesafe Cult
Created by mid on 2/16/2023 in #questions
How to setup grapql(t3 stack) with typeschecking?
10 replies
TTCTheo's Typesafe Cult
Created by mid on 2/16/2023 in #questions
How to setup grapql(t3 stack) with typeschecking?
Is there a way to get static type checking for typeDefs and resolvers?
10 replies
TTCTheo's Typesafe Cult
Created by mid on 2/16/2023 in #questions
How to setup grapql(t3 stack) with typeschecking?
How i have setup my apollo server src/server/apollo/client.tsx
import { ApolloServer } from '@apollo/server';
import { typeDefs } from './typeDefs';
import { resolvers } from './resolvers';
import { env } from "../../env/server.mjs";
import {
ApolloServerPluginLandingPageLocalDefault,
ApolloServerPluginLandingPageProductionDefault,
} from '@apollo/server/plugin/landingPage/default';





declare global {
// eslint-disable-next-line no-var
var apollo: ApolloServer | undefined;
}

export const apollo = global.apollo || new ApolloServer({
typeDefs,
resolvers,
nodeEnv: env.NODE_ENV,
introspection: env.NODE_ENV !== "production",
plugins: [
process.env.NODE_ENV === 'production'
? ApolloServerPluginLandingPageProductionDefault()
: ApolloServerPluginLandingPageLocalDefault({ embed: false }),
],
});


if (env.NODE_ENV !== "production") {
global.apollo = apollo;
}
import { ApolloServer } from '@apollo/server';
import { typeDefs } from './typeDefs';
import { resolvers } from './resolvers';
import { env } from "../../env/server.mjs";
import {
ApolloServerPluginLandingPageLocalDefault,
ApolloServerPluginLandingPageProductionDefault,
} from '@apollo/server/plugin/landingPage/default';





declare global {
// eslint-disable-next-line no-var
var apollo: ApolloServer | undefined;
}

export const apollo = global.apollo || new ApolloServer({
typeDefs,
resolvers,
nodeEnv: env.NODE_ENV,
introspection: env.NODE_ENV !== "production",
plugins: [
process.env.NODE_ENV === 'production'
? ApolloServerPluginLandingPageProductionDefault()
: ApolloServerPluginLandingPageLocalDefault({ embed: false }),
],
});


if (env.NODE_ENV !== "production") {
global.apollo = apollo;
}
10 replies
TTCTheo's Typesafe Cult
Created by mid on 2/16/2023 in #questions
How to setup grapql(t3 stack) with typeschecking?
I had looked at this
10 replies
TTCTheo's Typesafe Cult
Created by mid on 2/13/2023 in #questions
Zod with custom type
@.mac @yashkarthik Thank its working, there seems to something wrong with vscode, so after restart I am getting red squiggly underline
12 replies
TTCTheo's Typesafe Cult
Created by mid on 2/13/2023 in #questions
Zod with custom type
@.mac Is there a way to do static check?
12 replies
TTCTheo's Typesafe Cult
Created by mid on 2/13/2023 in #questions
Zod with custom type
but it does give me error if i pass other values(compile time check)
12 replies
TTCTheo's Typesafe Cult
Created by mid on 2/13/2023 in #questions
Zod with custom type
no static check
12 replies
TTCTheo's Typesafe Cult
Created by shm91 on 2/6/2023 in #questions
Hello everyone, I need help, I stuck at rendering a component insider a div. My code is like below,
@shm99
10 replies
TTCTheo's Typesafe Cult
Created by shm91 on 2/6/2023 in #questions
Hello everyone, I need help, I stuck at rendering a component insider a div. My code is like below,
Remove { }
10 replies
TTCTheo's Typesafe Cult
Created by shm91 on 2/6/2023 in #questions
Hello everyone, I need help, I stuck at rendering a component insider a div. My code is like below,
Change to return( <>
<div className="RequestNewOrgBtn"> <Button disabled={false} onClick={onAddClick}> { "Request New External org" } </Button> <RequestExternalOrgModal isOpen={ShowReqExOrgModal} onClose={onReqExOrgModalClose} /> </div>
</> );
10 replies
TTCTheo's Typesafe Cult
Created by mid on 2/6/2023 in #questions
Hello
I followed the guide here https://trpc.io/docs/ssr
4 replies
TTCTheo's Typesafe Cult
Created by mid on 2/6/2023 in #questions
Hello
I followed the guide here https://trpc.io/docs/ssr
4 replies