You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With this tweet id = '1716120243775402095' => "This Post is from an account that no longer exists"
I get this error: 'TypeError: tweet.user is undefined'
my code:
const { data, error, isLoading } = useSWR('/api/tweets/' + tweetId, fetcher);
if (isLoading) {
return (<TweetSkeleton />)
}
else if (error) {
return null// (<TweetNotFound />)
} else {
//console.log(data.data);
if (data.data) {
const tweet = enrichTweet(data.data); <== Problem here
how can i check this before hand?
The text was updated successfully, but these errors were encountered:
With this tweet id = '1716120243775402095' => "This Post is from an account that no longer exists"
I get this error: 'TypeError: tweet.user is undefined'
my code:
how can i check this before hand?
The text was updated successfully, but these errors were encountered: