amanuel
amanuel
Explore posts from servers
PPrisma
Created by amanuel on 10/18/2024 in #help-and-questions
CTE query not working properly
I tried and it didn't work 😦
16 replies
PPrisma
Created by amanuel on 10/18/2024 in #help-and-questions
CTE query not working properly
Interesting, I'll give it a go
16 replies
PPrisma
Created by amanuel on 10/18/2024 in #help-and-questions
CTE query not working properly
Does that really change anything though? It's still the same query being executed
16 replies
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