pach
TTCTheo's Typesafe Cult
•Created by pach on 5/7/2023 in #questions
trpc useQuery adds "?" to the url every fetch, refreshing the page and resetting the state
also just for anyone who happens to read this,
is how im using the useContext
and .invalidate() in the endpoint the "proper" usage for refetching the data?
9 replies
TTCTheo's Typesafe Cult
•Created by pach on 5/7/2023 in #questions
trpc useQuery adds "?" to the url every fetch, refreshing the page and resetting the state
thank you so much
9 replies
TTCTheo's Typesafe Cult
•Created by pach on 5/7/2023 in #questions
trpc useQuery adds "?" to the url every fetch, refreshing the page and resetting the state
thats why
9 replies
TTCTheo's Typesafe Cult
•Created by pach on 5/7/2023 in #questions
trpc useQuery adds "?" to the url every fetch, refreshing the page and resetting the state
its a form
9 replies
TTCTheo's Typesafe Cult
•Created by pach on 5/4/2023 in #questions
"Unsafe assignment of `any` value
nevermind just had to restart vscode not just the ts server lmao
7 replies
TTCTheo's Typesafe Cult
•Created by pach on 5/4/2023 in #questions
"Unsafe assignment of `any` value
all on line 5
(const adminProfile = ....)
7 replies
TTCTheo's Typesafe Cult
•Created by pach on 5/4/2023 in #questions
"Unsafe assignment of `any` value
here is all i have right now
the errors im getting are
Unsafe call of an `any` typed value. Unsafe assignment of an `any` value. Unsafe member access .findFirst on an `any` value.
7 replies
TTCTheo's Typesafe Cult
•Created by pach on 3/22/2023 in #questions
is it "ideal" to directly fetch /api/trpc/route.procedure in another server
so im using trpc alot for the actual web app, but im wanting to have some data accessible for the web app and also a game server, so i think openapi will be perfect here
5 replies
TTCTheo's Typesafe Cult
•Created by pach on 3/12/2023 in #questions
Wanting to save some data every 30 days from an external game server on my t3 app server database.
going to setup my app in vercel now and give it a go anyway
but i did find this and this might work
https://nextjs.org/docs/advanced-features/custom-server
9 replies
TTCTheo's Typesafe Cult
•Created by pach on 3/12/2023 in #questions
Wanting to save some data every 30 days from an external game server on my t3 app server database.
i hate to say im not using vercel but im not using vercel
9 replies
TTCTheo's Typesafe Cult
•Created by pach on 3/12/2023 in #questions
Wanting to save some data every 30 days from an external game server on my t3 app server database.
node-cron maybe?
9 replies
TTCTheo's Typesafe Cult
•Created by pach on 3/10/2023 in #questions
Get a users id (snowflake) when signing in 0Auth
i didnt actually need prisma for my app (just yet anyway) so i am removing it
also didn't know you could overwrite the
signIn
callback in the authOptions, and that lets me do exactly what i need with the users profile4 replies
TTCTheo's Typesafe Cult
•Created by pach on 3/10/2023 in #questions
Get a users id (snowflake) when signing in 0Auth
you are right
4 replies