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'm trying to retrieve a paged list of items from a list. I expect that when I have caching enabled with .using(Caching(...)) that it stores cached data in my local storage and reads it correctly on subsequent calls (i.e. paged results come through).
Observed Behavior
What I see is:
3.21
Works as expected with all caching and even paged results. Thanks to the following bug report, I see paging was fixed as of 3.21 #2836 and it works great! All other paging works as expected. I can see the cached data written to local storage and it is read correctly. Paged results even retrieve their "getNext()" results correctly (thanks again for that fix in 3.21!).
3.22
This version doesn't cache properly at all, but that's not important now. See my previous bug report here #2935 .
3.23
Works like 3.21 with the exception of paged results not coming through correctly. This is as though the "hasNext" or "getNext()" props aren't correctly set or utilised. I have a list of 164 items and only 100 ever get returned when through a cached request. Again, this is working perfectly in 3.21 with all 164 items being returned via paged cache requests. I have tested other libraries with hundreds of items too.
This is the first request prior to cache. As is observed, there are 164 items.
These are what subsequent caching request look like. Only 100 items ever get returned.
Steps to Reproduce
As per bug report #2935, I've copied what I had written there.
We are using a huge shared library in house. There are many things that are spread between multiple files and classes. So I'll just copy the imports here and then just copy/paste the main functions.
Please see "Observed Behavior" above as that outlines what I'm experiencing. Basically using the same code with 3.21 works yet it completely fails with 3.23 (regarding caching).
Hi, yes, unfortunately we've had to revert the functionality for Paging and Caching together. The fix we had put into place to support this caused other issues within PnPjs. As such, we decided to revert the change in Version 3. Please see our recent changelog.
We will be evaluating and implementing a new fix in Version 4 (which we are actively working on).
Closing this issue as answered. If you have additional questions or we did not answer your question, please open a new issue, ref this issue, and provide any additional details available. Thank you!
Major Version
3.x
Minor Version Number
3.23
Target environment
SharePoint Framework
Additional environment details
Expected or Desired Behavior
I'm trying to retrieve a paged list of items from a list. I expect that when I have caching enabled with .using(Caching(...)) that it stores cached data in my local storage and reads it correctly on subsequent calls (i.e. paged results come through).
Observed Behavior
What I see is:
3.21
Works as expected with all caching and even paged results. Thanks to the following bug report, I see paging was fixed as of 3.21 #2836 and it works great! All other paging works as expected. I can see the cached data written to local storage and it is read correctly. Paged results even retrieve their "getNext()" results correctly (thanks again for that fix in 3.21!).
3.22
This version doesn't cache properly at all, but that's not important now. See my previous bug report here #2935 .
3.23
Works like 3.21 with the exception of paged results not coming through correctly. This is as though the "hasNext" or "getNext()" props aren't correctly set or utilised. I have a list of 164 items and only 100 ever get returned when through a cached request. Again, this is working perfectly in 3.21 with all 164 items being returned via paged cache requests. I have tested other libraries with hundreds of items too.
This is the first request prior to cache. As is observed, there are 164 items.
These are what subsequent caching request look like. Only 100 items ever get returned.
Steps to Reproduce
As per bug report #2935, I've copied what I had written there.
We are using a huge shared library in house. There are many things that are spread between multiple files and classes. So I'll just copy the imports here and then just copy/paste the main functions.
Please see "Observed Behavior" above as that outlines what I'm experiencing. Basically using the same code with 3.21 works yet it completely fails with 3.23 (regarding caching).
Get list items. Uses paging.
The text was updated successfully, but these errors were encountered: