diff options
-rw-r--r-- | src/components/taggs/TaggsBar.tsx | 6 |
1 files changed, 6 insertions, 0 deletions
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<TaggsBarProps> = ({ }; 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]); |