You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using the filelist component in a teams tab. The component keeps making calls to the graph to get the files even though they were already loaded and are in the cache.
You will see the calls made to the graph to get the files on each reload
Expected behavior
The files should be retrieved from the cache
n your problem.
Environment (please complete the following information):
OS: Windows
Browser Edge
Framework react
ContextMicrosoft Teams
Version 4.2.3
Provider ProxyProvider
Additional context
In troubleshooting this i ended up looking at the GetIterator method in graph.files.ts
When we are getting files from the cache we use this:
const fileList = await getFileListFromCache(cache, storeName, ${endpoint}:${top});
I am using the filelist component in a teams tab. The component keeps making calls to the graph to get the files even though they were already loaded and are in the cache.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The files should be retrieved from the cache
n your problem.
Environment (please complete the following information):
Additional context
In troubleshooting this i ended up looking at the GetIterator method in graph.files.ts
When we are getting files from the cache we use this:
const fileList = await getFileListFromCache(cache, storeName,
${endpoint}:${top}
);When adding files to the cache we use this
await cache.putValue(endpoint, {
files: filesPageIterator.value.map(v => JSON.stringify(v)),
nextLink
});
so the keys to not seem to match. When we get the key is
${endpoint}:${top}
, when we put the key is endpoint.The text was updated successfully, but these errors were encountered: