I'm trying to get Data from SP List through rest API from SPFX, I've checked by running that rest API directly in the browser where it shows correct data but while making a call from SPFX that rest API gives mismatched data in comparison to what data is present in SP list. But this problem persists only until I clean browser cache and hard reload after that it shows correct data.
Not able to understand the reason behind it on browser rest API works fine but making a list call to fetch the same with that rest API it shows data mismatch.
I'm pasting the rest API URL for the same -
https://contose.sharepoint.com/sites/MySite/Site/_api/web/lists/getByTitle('MyList')/items(252)?$select=*, AmbassadorsRequired/TaskID, AmbassadorsRequired/SignUpCount, AmbassadorsRequired/AmbassadorsRequired, Author/EMail, Author/Name,Assigntaskowner/EMail,Assigntaskowner/Name,Assigntaskowner/Title&$expand=AmbassadorsRequired, Author, Assigntaskowner
The column data which we are fetching is a lookup column stored in another list, I verified both the list had correct data for that column.
Kindly help me on this.