Hello,
I am currently stuck with an issue using the PrivateMembersData and creating my own Custom Profile Page for members. I have data linked to a Profile Image and Nickname but when viewing the profile page the data isn’t showing until I refresh the page. That being said it will show a random users information until I refresh the page. How do I get this to show the current logged in user at the beginning without having to hit refresh for the data to update?
First Screenshot of first page load (as you can see my profile image and name is not showing until i hit refresh)
I believe this is because of a conflict in the permissions you have as an Admin of the site (the account you’re logged into on the live site has Admin permissions) and the permissions of the collection.
Since the PrivateMembersData is limited so only the author and Admins of the item can view it’s content, what you’re seeing on the live site is not just your account info, it’s pulling other info, because you can technically access it.
I’d recommend for testing purposes, logging in with an account not connected as a contributor to the site to see if it works.
Alternatively (if you’re into code), use currentMember
to get the current member of the site and populate data that way. Docs here - Get Member | VELO