Open nicholaschiang opened 2 years ago
From @nicholaschiang on Thursday, 3/24/22, 5:43 PM PDT:
Currently there's no easy way to get a tweet's replies (see https://linear.app/roote/document/twitter-sucks-5d618997021d).
From @nicholaschiang on Thursday, 3/24/22, 12:30 PM PDT:
To do this, I'm going to have possibility infinite Remix nested routes where each URL is to a reply or retweet or thread, etc. and then when a new retweet is opened I should sync from Twitter and perhaps show a tiny bit of a skeleton screen (for <50ms). When you click on a tweet, I:
/lists/:id/tweets/:id
tweets.server
and only fetch all 100 replies if we don't already have the last reply cached.?swr=false
or something).fetcher.submission
to optimistically show data from Twitter (without waiting on Postgres).And then recursively repeat that process an infinite number of times using a catch-all route ($.ts
). I'll have to investigate whether those catch-all routes actually recursively render themselves into their own <Outlet>
…
Partially addressed by #64.
Imported from @nicholaschiang's original Linear issue TS-22.
I could easily create a nice thread-reader type experience where I show all of the replies and retweets of a tweet for an article. Kinda like a hierarchy:
Article → Tweet → Replies & Threads → Retweets → Replies & Threads, etc, etc.