Aman
Aman
Explore posts from servers
TTCTheo's Typesafe Cult
Created by Aman on 8/12/2023 in #questions
Issues with graphql mutations
Hey guys, having some issues with graphql mutations, can someone please help me, here's the issue https://www.reddit.com/r/graphql/comments/15i8dkp/having_issues_with_mutations/
2 replies
TTCTheo's Typesafe Cult
Created by Aman on 6/26/2023 in #questions
Ignoring __test__ folder during the build process
Hey guys I am trying to ignore my test files during the build process but unable to progress, can someone please help me out, here's my tsconfig file
{
"compilerOptions": {
"target": "es5",
"lib": ["dom", "dom.iterable", "esnext"],
"allowJs": true,
"skipLibCheck": true,
"strict": false,
"forceConsistentCasingInFileNames": true,
"noEmit": true,
"incremental": true,
"esModuleInterop": true,
"module": "esnext",
"moduleResolution": "node",
"resolveJsonModule": true,
"baseUrl": ".",
"rootDir": ".",
"isolatedModules": true,
"jsx": "preserve"
},
"paths": {
"~/*": ["<rootDir>"]
},
"include": [
"next-env.d.ts",
"**/*.js",
"**/*.ts",
"**/*.tsx",
"./.eslintrc.cjs"
],
"exclude": ["node_modules", "**/*.test.ts", "**/*.test.tsx"]
}
{
"compilerOptions": {
"target": "es5",
"lib": ["dom", "dom.iterable", "esnext"],
"allowJs": true,
"skipLibCheck": true,
"strict": false,
"forceConsistentCasingInFileNames": true,
"noEmit": true,
"incremental": true,
"esModuleInterop": true,
"module": "esnext",
"moduleResolution": "node",
"resolveJsonModule": true,
"baseUrl": ".",
"rootDir": ".",
"isolatedModules": true,
"jsx": "preserve"
},
"paths": {
"~/*": ["<rootDir>"]
},
"include": [
"next-env.d.ts",
"**/*.js",
"**/*.ts",
"**/*.tsx",
"./.eslintrc.cjs"
],
"exclude": ["node_modules", "**/*.test.ts", "**/*.test.tsx"]
}
4 replies
TTCTheo's Typesafe Cult
Created by Aman on 3/20/2023 in #questions
Drag and drop UI
Hey guys I am trying to do some array rearrangements which drag and drop package works best with typescript that I can use with react’s current version
5 replies
TTCTheo's Typesafe Cult
Created by Aman on 3/16/2023 in #questions
calling GET, POST, DELETE, and PUT request in one next.js api file
Hi guys is it possible to call all 4 CRUD methods in one Next.js api file?
6 replies
TTCTheo's Typesafe Cult
Created by Aman on 3/14/2023 in #questions
og meta tags
Hey guys what's the best way to check og meta tags for video on localhost, especially for twitter cards?
3 replies
TTCTheo's Typesafe Cult
Created by Aman on 2/8/2023 in #questions
Best Approach for error handling
Hi guys, what is the right approach for error handling, would really appreciate if someone can help me think this through 1. Using Context api to manage error state globally 2. Managing error locally at component level
11 replies
TTCTheo's Typesafe Cult
Created by Aman on 2/7/2023 in #questions
Custom data fetching hook
Hey guys, It would be really helpful if someone can provide some examples as to how to configure a custom data fetching hook, such that it returns repeat queries from cache directly, More context: https://twitter.com/JeroenReumkens/status/1619183996575035392?s=20
8 replies
TTCTheo's Typesafe Cult
Created by Aman on 1/12/2023 in #questions
Callback Url working locally but not working in vercel deployment
2 replies
TTCTheo's Typesafe Cult
Created by Aman on 1/6/2023 in #questions
og image meta tag with Next.js is not working
Hey guys I am trying to generate a link preview for my hosted url, but it is not working, can someone please help me Hosted vercel deployement: https://context-gamma.vercel.app/ Github Link where I have added the meta tag: https://github.com/amantulsyan35/context/blob/main/src/pages/_document.tsx
1 replies
TTCTheo's Typesafe Cult
Created by Aman on 1/4/2023 in #questions
Type Error while building
13 replies
TTCTheo's Typesafe Cult
Created by Aman on 12/22/2022 in #questions
API Layer abstraction
Is it good idea to have the api folder abstracted inside the shared packages folder when working with Next.js in a monorepo architecture, if not what are some of the ways In which we can abstract the api layer
2 replies