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
In #2367 we're adding GitHub info for posts, and we have included a new function, extractedGitHubUrls. We'd like to memoize this result, but our early work at doing so hasn't been successful. Here's what we think it should look like, but it needs to get fixed so it works:
// Extract all the github urls from the postconstextractedGitHubUrls: string[]=useMemo(()=>(post?.html ? extractGitHubUrlsFromPost(post.html) : []),[post?.html]);
...
{extractedGitHubUrls.length ? <GitHubInfoghUrls={extractedGitHubUrls}/> : null}
In #2367 we're adding GitHub info for posts, and we have included a new function,
extractedGitHubUrls
. We'd like to memoize this result, but our early work at doing so hasn't been successful. Here's what we think it should look like, but it needs to get fixed so it works:cc @menghif @DukeManh
The text was updated successfully, but these errors were encountered: