josh-dev627
josh-dev627
Explore posts from servers
TTCTheo's Typesafe Cult
Created by josh-dev627 on 5/18/2023 in #questions
Shadcn fonts not working
Thanks man! putting it in the head worked for me!
5 replies
TTCTheo's Typesafe Cult
Created by josh-dev627 on 5/11/2023 in #questions
TRPC Context
ahh middlewares in trpc, I though in nextjs. Thanks for the help man!
7 replies
TTCTheo's Typesafe Cult
Created by josh-dev627 on 5/11/2023 in #questions
TRPC Context
Hi @cje Thanks for the response. Can I get more information about putting it in the middleware instead? do you mean adding a route check and only add those information if the condition passes? Thank you!
7 replies
TTCTheo's Typesafe Cult
Created by josh-dev627 on 5/5/2023 in #questions
How do you setup Shadcn with Create t3?
Ahh @Alejo I think the problem is when I added the Button it did not include the radix library so I had to install it myslef.
16 replies
TTCTheo's Typesafe Cult
Created by josh-dev627 on 5/5/2023 in #questions
How do you setup Shadcn with Create t3?
Yes I've tried it right now but still showing the same error
16 replies
TTCTheo's Typesafe Cult
Created by josh-dev627 on 5/2/2023 in #questions
Consuming external API with TRPC.
but using react-query useQuery, won't allow me to query an external api or atleast there is something that I missed
5 replies
TTCTheo's Typesafe Cult
Created by josh-dev627 on 5/2/2023 in #questions
Consuming external API with TRPC.
Sorry there was an error on my end. Although I can't still figure out how to do this using client-side fetching this only works when I query it through trpc
5 replies
TTCTheo's Typesafe Cult
Created by Mik3y-F on 4/28/2023 in #questions
I'm having trouble using the shadcn-ui Sheet component
I also encountered this one, specially when I'm using a button
4 replies
TTCTheo's Typesafe Cult
Created by josh-dev627 on 4/25/2023 in #questions
Client-Side Fetching with React-Query
192.128.51.172:8080/api this is what I added as my NEXT_PUBLIC_API_URL
15 replies
TTCTheo's Typesafe Cult
Created by josh-dev627 on 4/25/2023 in #questions
Client-Side Fetching with React-Query
how do I query an external api such as one that is not hosted by me but by other api providers? I want to fetch data using client-side fetching but can't because every request is appended localhost:3000
15 replies
TTCTheo's Typesafe Cult
Created by josh-dev627 on 4/25/2023 in #questions
Client-Side Fetching with React-Query
The URL that I'm using is appended with localhost:3000, but I did not add it intentionally
15 replies
TTCTheo's Typesafe Cult
Created by josh-dev627 on 4/25/2023 in #questions
Client-Side Fetching with React-Query
Do I need to add <QueryClientProvider client={queryClient}> in my _app.tsx?
15 replies
TTCTheo's Typesafe Cult
Created by josh-dev627 on 4/20/2023 in #questions
Multi-tenant Saas Application
Thank you!
4 replies
TTCTheo's Typesafe Cult
Created by josh-dev627 on 4/17/2023 in #questions
How to handle invalidate queries
do I add this inside my onSuccess handler?
25 replies
TTCTheo's Typesafe Cult
Created by josh-dev627 on 4/17/2023 in #questions
How to handle invalidate queries
Hi @iway1 where does this usually fit in the code, I'm just curious, sorry.
25 replies
TTCTheo's Typesafe Cult
Created by josh-dev627 on 4/17/2023 in #questions
How to handle invalidate queries
Thank you so much @Neto !
25 replies
TTCTheo's Typesafe Cult
Created by josh-dev627 on 4/17/2023 in #questions
How to handle invalidate queries
is there much a difference between isFetching and isLoading?
25 replies
TTCTheo's Typesafe Cult
Created by josh-dev627 on 4/17/2023 in #questions
How to handle invalidate queries
do you have any suggestions how I might be able to add a loading state because right now either the user has to stare at a blank canvas and wait for a moment for the data to be refreshed, or just completely refresh the page so that the user will be able to see the new project.
25 replies
TTCTheo's Typesafe Cult
Created by josh-dev627 on 4/17/2023 in #questions
How to handle invalidate queries
ahh okay so it really does take a little bit of time for the data to be refreshed.
25 replies
TTCTheo's Typesafe Cult
Created by josh-dev627 on 4/17/2023 in #questions
How to handle invalidate queries
this is my code; const { mutate: createInitialProject, isLoading: createInitialProjectLoading, } = api.project.createInitialProject.useMutation({ onSuccess: () => { removeValue(); void api.useContext().project.getAllProjectOrders.invalidate(); }, });
25 replies