Merge branch 'master' of github.com:Re-Ignited-Development/new-phone-who-dis into feature/twitter-delete

This commit is contained in:
erik-sn committed 2020-10-24 23:44:33 -04:00
commit 54294c8a75
1 file changed
+3 -2
@@ -1,4 +1,4 @@
import React, { useEffect, useState } from "react";
import React, { useEffect, useState, memo } from "react";
import { List } from "../../../../ui/components/List";
import Tweet from "./Tweet";
@@ -21,6 +21,7 @@ export function TweetList({ tweets }) {
// another flash to the tweets screen.
const hasLoaded = tweets && minimumLoadPassed;
if (!hasLoaded) return <TweetSkeletonList />;
return (
<List>
@@ -31,4 +32,4 @@ export function TweetList({ tweets }) {
);
}
export default TweetList;
export default memo(TweetList); // only re-render if our tweets change