diff options
author | Ashm Walia <40498934+ashmgarv@users.noreply.github.com> | 2020-11-02 10:23:26 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-02 13:23:26 -0500 |
commit | e1c69fd44b3f5fdab4f42fa3db8902ba09f6ab79 (patch) | |
tree | 22e70f34ea060da32735de3a0de9c450600216e9 | |
parent | 6aa3bf3068d60f5ffac5af43ed98175e4735903f (diff) |
Fix (#90)
-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]); |