I'm trying to read a user's address from their profile with useLDflex()
or useLDflexValue()
.
When I run this:
const address = useLDflex(`[${webId}].vcard_hasAddress`)?.toString() || 'loading...';
console.log('address: ', address);
Console shows:
address: https://<username>.solidcommunity.net/profile/card#id1234567890,false,
I can go to the URL in my browser and is shows the address object but how do I directly access the contents of the address object in my code? I presume there is a function to resolve the address URL and return the contents but can't find it.
Thank you. Any links to reading material on this topic would also be appreciated.