I have a component like so:
export function SomeComponent(props) {
const { id } = props;
const photo = `http://someurl.com/photo/${id}/`;
return (
<View>
<Avatar
rounded
source={photo}
/>
</View>
);
}
I have a photo update endpoint which updates the photo that is stored in http://someurl.com/photo/${id}/
.
The issue is after the update and I visit the route where this component is shown, it's still showing the old photo. Only if I refresh the page, will the photo get updated.
Is there a way to force reload the content of the link? Or do I need to force reload the route that contains the component?