amanuel
amanuel
Explore posts from servers
TTCTheo's Typesafe Cult
Created by amanuel on 1/24/2023 in #questions
How to use several fonts in Nextjs?
How is import "cal-sans" used?
6 replies
TTCTheo's Typesafe Cult
Created by amanuel on 1/24/2023 in #questions
How to use several fonts in Nextjs?
thank you so much, is there a way to apply it directly to a p tag or something?
6 replies
TTCTheo's Typesafe Cult
Created by amanuel on 1/19/2023 in #questions
Invalidating queries with tRPC
Then you can do:
const utils = trpc.useContext();
then you can do something like...
utils.availability.getAvailability.setData() -> equivalent to queryClient.setQueryData()
const utils = trpc.useContext();
then you can do something like...
utils.availability.getAvailability.setData() -> equivalent to queryClient.setQueryData()
12 replies
TTCTheo's Typesafe Cult
Created by amanuel on 1/19/2023 in #questions
Invalidating queries with tRPC
For example, if you want to do optimistic updates like such: https://tanstack.com/query/v4/docs/react/guides/optimistic-updates
12 replies
TTCTheo's Typesafe Cult
Created by amanuel on 1/19/2023 in #questions
Invalidating queries with tRPC
Here is solution for anyone wondering: https://trpc.io/docs/useContext#helpers
12 replies
TTCTheo's Typesafe Cult
Created by amanuel on 1/19/2023 in #questions
Invalidating queries with tRPC
Thank you so much in advance
12 replies
TTCTheo's Typesafe Cult
Created by amanuel on 1/19/2023 in #questions
Invalidating queries with tRPC
Do you mind if I DM real quick, I would like to show some code examples.
12 replies
TTCTheo's Typesafe Cult
Created by ziN on 1/16/2023 in #questions
useInfiniteQuery does not exist on TRCP
Can you show an example of how you're trying to use it?
5 replies
TTCTheo's Typesafe Cult
Created by amanuel on 12/22/2022 in #questions
useQuery refetching doesn't re-render?
yeah, thanks!
68 replies
TTCTheo's Typesafe Cult
Created by amanuel on 12/22/2022 in #questions
useQuery refetching doesn't re-render?
I have to migrate to using webhooks eventually though, I don't want to rely on refetching intervals
68 replies
TTCTheo's Typesafe Cult
Created by amanuel on 12/22/2022 in #questions
useQuery refetching doesn't re-render?
It's a bit unreliable
68 replies
TTCTheo's Typesafe Cult
Created by amanuel on 12/22/2022 in #questions
useQuery refetching doesn't re-render?
yeah I don't know what it is, again it kind of didn't work right now with a different modification
68 replies
TTCTheo's Typesafe Cult
Created by amanuel on 12/22/2022 in #questions
useQuery refetching doesn't re-render?
Thanks for helping out though, I really appreciate it
68 replies
TTCTheo's Typesafe Cult
Created by amanuel on 12/22/2022 in #questions
useQuery refetching doesn't re-render?
so sorry for wasting your time
68 replies
TTCTheo's Typesafe Cult
Created by amanuel on 12/22/2022 in #questions
useQuery refetching doesn't re-render?
I just did the same exact test, I modified the db manually and I did a refetch interval and it picked up on the change and re-rendered
68 replies
TTCTheo's Typesafe Cult
Created by amanuel on 12/22/2022 in #questions
useQuery refetching doesn't re-render?
what is this
68 replies
TTCTheo's Typesafe Cult
Created by amanuel on 12/22/2022 in #questions
useQuery refetching doesn't re-render?
Ok, I just tested again and it suddenly works.... bruhhhhhh
68 replies