From e1c69fd44b3f5fdab4f42fa3db8902ba09f6ab79 Mon Sep 17 00:00:00 2001 From: Ashm Walia <40498934+ashmgarv@users.noreply.github.com> Date: Mon, 2 Nov 2020 10:23:26 -0800 Subject: Fix (#90) --- src/components/taggs/TaggsBar.tsx | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src') diff --git a/src/components/taggs/TaggsBar.tsx b/src/components/taggs/TaggsBar.tsx index 61bcd90a..f2622011 100644 --- a/src/components/taggs/TaggsBar.tsx +++ b/src/components/taggs/TaggsBar.tsx @@ -74,6 +74,12 @@ const TaggsBar: React.FC = ({ }; if (taggsNeedUpdate) { + /** + * Triggering redundant call to the backend for now to make the app work. + * TODO : Figure out a better way to get the updates social posts for the profile being visited. + * Have an event triggered from ProfileProvider based on which we could make a call to backedn to get updated posts. + */ + socialsNeedUpdate(INTEGRATED_SOCIAL_LIST); loadData(); } }, [isProfileView, taggsNeedUpdate, user.userId]); -- cgit v1.2.3-70-g09d2