Andrew
Andrew
TTCTheo's Typesafe Cult
Created by Andrew on 3/28/2024 in #questions
Unhelpful useQuery error
This only errors out once on first load and not again afterwards
3 replies
TTCTheo's Typesafe Cult
Created by Andrew on 3/27/2024 in #questions
Increase execution duration T3 w/ TRPC
aws is too much for our needs currently
15 replies
TTCTheo's Typesafe Cult
Created by Andrew on 3/27/2024 in #questions
Increase execution duration T3 w/ TRPC
yeah if it scales after initial customer testing I'll look into it, thanks
15 replies
TTCTheo's Typesafe Cult
Created by Andrew on 3/27/2024 in #questions
Increase execution duration T3 w/ TRPC
nvm I solved it, export const maxDuration needs to be in [trpc].ts
15 replies
TTCTheo's Typesafe Cult
Created by Andrew on 3/27/2024 in #questions
Increase execution duration T3 w/ TRPC
No description
15 replies
TTCTheo's Typesafe Cult
Created by Andrew on 3/27/2024 in #questions
Increase execution duration T3 w/ TRPC
wait I need a registered business to pay in Canada? 🗿
15 replies
TTCTheo's Typesafe Cult
Created by Andrew on 3/27/2024 in #questions
Increase execution duration T3 w/ TRPC
thanks!
15 replies
TTCTheo's Typesafe Cult
Created by Andrew on 3/27/2024 in #questions
Increase execution duration T3 w/ TRPC
ah I see
15 replies
TTCTheo's Typesafe Cult
Created by Andrew on 11/19/2022 in #questions
Jest on dynamic routing
Update: you have to mock next/router ie something like the following at the top of the file:
// mock router
jest.mock('next/router', () => ({
useRouter() {
return {
query: { id: '1' },
}
},
}))
// mock router
jest.mock('next/router', () => ({
useRouter() {
return {
query: { id: '1' },
}
},
}))
Ref: https://stackoverflow.com/a/69126334/12539335
3 replies
TTCTheo's Typesafe Cult
Created by Andrew on 11/19/2022 in #questions
Jest on dynamic routing
do I need to mock the router or something else?
3 replies