rooteco / tweetscape

the supercharged twitter feed
https://prototype.tweetscape.co
GNU Affero General Public License v3.0
18 stars 2 forks source link

Revalidate SWR after like or retweet #411

Open nicholaschiang opened 2 years ago

nicholaschiang commented 2 years ago

I should have already fixed it but it doesn't work consistently. After liking a tweet (see #354), I should invalidate the query in which that tweet resides so that after the loader is revalidated, the tweet remains "liked".

Or, perhaps while working on #410, I can make our Postgres back-end fast enough that there's no point in using Redis to cache results anyways (and then I won't have to ever worry about invalidating or revalidating caches).

nicholaschiang commented 2 years ago

https://user-images.githubusercontent.com/20798889/164339261-57014a59-5587-4907-ace2-7a3841eb8774.mp4