Social Profiles - not working as expected

Hi all

Looking for help on somthing I think must be an easy fix but I’m getting myself confused!

IMy app is a social media platform and in my “view social profile” screen (e.g. the profile of others) there is the following which pulls data from the user database:

  • follower count
  • following count
  • social feed of their posts
  • job title
  • company

If I access the users profile via the newsfeed, not everything is populating but if i access it via the logged in users follower/following list, it populates everything. If I access it via the logged in users follower/following list first, I can then see the data when accessing it via the newsfeed.

However the second issue is that if I then click on another person’s profile, its populating the details of the previous profile I viewed. e.g. I viewed person 1 via the logged in users follower list, all the data populated, I then navigate to the newsfeed and click into person 1 via that route and still see the data. I go on to access person 2’s profile via the newsfeed but still see person 1 data.

Any idea what is happening here and how to overcome this?

Thanks in advance!

Hello!
It sounds like your “view social profile” screen is suffering from stale data and inconsistent fetching. When accessed via the follower/following list, it correctly fetches all user details, but via the newsfeed, it either uses old, cached data or an incomplete fetch, leading to previously viewed profiles displaying their information instead of the current one. The fix centura health login involves ensuring your profile screen always performs a fresh data fetch for the correct user ID every time it loads, regardless of the navigation source, and clearing any prior data to prevent showing stale information.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.