viewablegravy
viewablegravy
TTCTheo's Typesafe Cult
Created by viewablegravy on 9/16/2023 in #questions
api.withTRPC doesn't show isLoading or isRefetching on cache invalidation
Was about to fall asleep (1:30am here) and had that realisation moments before I would’ve fallen asleep, that of course that’s what was happening. Thanks again for the insight, genuinely appreciate it.
10 replies
TTCTheo's Typesafe Cult
Created by viewablegravy on 9/16/2023 in #questions
api.withTRPC doesn't show isLoading or isRefetching on cache invalidation
Thanks for the suggestion. I took a look, it looks like that was already wrapped by default (Or maybe I did it when I was first getting started). With that said, I've just managed to solve the problem... I had a component "Navbar" that wasn't using TRPC but was wrapped with withTRPC and inside that component was the one where I was trying to invalidate the cache (NavbarButton). I actually don't fully understand why this would break the ability to invalidate the cache but removing it fixes the problem. Thank you for your taking the time to help out!
10 replies
TTCTheo's Typesafe Cult
Created by Yash Saxena on 7/20/2023 in #questions
Any free-tier solutions for heavy read-write personal projects?
Do you know what you will benefit from using postgres? Honestly, unless you are a database wiz and want to utilize Postgresql syntax, you are likely going to be using some kind of ORM (e.g. prisma) and won't likely see benefits from a specific database. Given the scale of your application, as long as what you have is an SQL database, I wouldn't stress too much about. Of course if you need postgres then hopefully you find something, I wouldn't be too sure past planetscale.
25 replies