diff options
author | Shravya Ramesh <shravs1208@gmail.com> | 2021-06-09 17:00:26 -0700 |
---|---|---|
committer | Shravya Ramesh <shravs1208@gmail.com> | 2021-06-09 17:00:26 -0700 |
commit | d1d6556d02f56ca03350e04de7f466fa13c7d96c (patch) | |
tree | f2e7a44c34f5877d59e4e27c132d2c1029174000 /src/components | |
parent | 576857b69ddf50afca16a345fb4f26997051681f (diff) |
Load tags when item is changed
Diffstat (limited to 'src/components')
-rw-r--r-- | src/components/moments/MomentPost.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/moments/MomentPost.tsx b/src/components/moments/MomentPost.tsx index e744fcd9..b659177d 100644 --- a/src/components/moments/MomentPost.tsx +++ b/src/components/moments/MomentPost.tsx @@ -40,7 +40,7 @@ const MomentPost: React.FC<MomentPostProps> = ({item, userXId, screenType}) => { */ useEffect(() => { loadTags(); - }, []); + }, [item]); /* * Check if loggedInUser has been tagged in the picture and set the id |