arkitos
TTCTheo's Typesafe Cult
•Created by arkitos on 9/28/2023 in #questions
pnpm install fails with code 128
4 replies
TTCTheo's Typesafe Cult
•Created by arkitos on 9/28/2023 in #questions
pnpm install fails with code 128
pnpm install also fails
4 replies
TTCTheo's Typesafe Cult
•Created by arkitos on 1/8/2023 in #questions
Why is my Vercel Analytics score so low?
@KamilT I see. Something interesting is if the site gets used the score goes up, while there's not many users the score goes down
13 replies
TTCTheo's Typesafe Cult
•Created by arkitos on 1/8/2023 in #questions
Why is my Vercel Analytics score so low?
i can’t find anything on google to demonstrate this to my friend
13 replies
TTCTheo's Typesafe Cult
•Created by arkitos on 1/8/2023 in #questions
Why is my Vercel Analytics score so low?
I've seen a similar issue, thank you
13 replies
TTCTheo's Typesafe Cult
•Created by arkitos on 1/8/2023 in #questions
Why is my Vercel Analytics score so low?
@cje Do you have any sources of this?
13 replies
TTCTheo's Typesafe Cult
•Created by arkitos on 12/20/2022 in #questions
Vercel takes ages to ISR from Sanity
Thanks I will have a look, but back to the original question, any idea why its taking a few hours to see the sanity changes on nextjs?
16 replies
TTCTheo's Typesafe Cult
•Created by arkitos on 12/20/2022 in #questions
Vercel takes ages to ISR from Sanity
does google not crawl for all site links/sitemap?
16 replies
TTCTheo's Typesafe Cult
•Created by arkitos on 12/20/2022 in #questions
Vercel takes ages to ISR from Sanity
wouldn't that be bad for SEO purposes?
16 replies
TTCTheo's Typesafe Cult
•Created by arkitos on 12/20/2022 in #questions
Vercel takes ages to ISR from Sanity
@alex289 yup its false
16 replies
TTCTheo's Typesafe Cult
•Created by arkitos on 9/18/2022 in #questions
Call Mutation again on Error?
Need to pass access and secret keys in the POST body. The use case is a bit different for the app I'm working on because of multiple tenants and as such thats how the backend dev ended up making it
28 replies
TTCTheo's Typesafe Cult
•Created by arkitos on 9/18/2022 in #questions
Call Mutation again on Error?
which means I cant do the react query builtin refreshInterval. Frick.
28 replies
TTCTheo's Typesafe Cult
•Created by arkitos on 9/18/2022 in #questions
Call Mutation again on Error?
oh and yes... getting the token is a mutation not a query 🙂
28 replies
TTCTheo's Typesafe Cult
•Created by arkitos on 9/18/2022 in #questions
Call Mutation again on Error?
Just doing this right now to attach the token to headers whenever I get it
28 replies
TTCTheo's Typesafe Cult
•Created by arkitos on 9/18/2022 in #questions
Call Mutation again on Error?
That's... pretty graceful. I'll definitely tinker around with this method and see how it works. Pretty sure this means the token would always be valid right?
And to attach it to axios headers I would need to useEffect on it and add it to the common headers.
28 replies
TTCTheo's Typesafe Cult
•Created by arkitos on 9/18/2022 in #questions
Call Mutation again on Error?
could you elaborate on the externally part?
28 replies
TTCTheo's Typesafe Cult
•Created by arkitos on 9/18/2022 in #questions
Call Mutation again on Error?
Another unfortunate thing apart from handling state manually is I would need to use the same trycatch logic for every API that needs to handle expired tokens
28 replies
TTCTheo's Typesafe Cult
•Created by arkitos on 9/18/2022 in #questions
Call Mutation again on Error?
Tried. Nope 😦
onError
fires after all the retries have been made28 replies
TTCTheo's Typesafe Cult
•Created by arkitos on 9/18/2022 in #questions
Call Mutation again on Error?
Ok i'm fairly new to tRPC and had no idea this was possible. Bit of a tangent from the initial question but don't you need a monorepo for tRPC to work?
The backend stuff is completely separate in my case
28 replies
TTCTheo's Typesafe Cult
•Created by arkitos on 9/18/2022 in #questions
Call Mutation again on Error?
I think the most straightforward way to do this would be with a try catch block with mutateAsync, calling the API again on error after refreshing the token
The unfortunate thing with that is I would need to manage the API state manually
28 replies