Using cache with server side paginated data #261
-
Hello I have a question about possibility to cache server side paginated data. For example, if I have table with several pages. On each page is 20 items. I'll go to first page and first 20 items will load from API and save to Store. After that I will go to second page and next 20 items will load and save to store. Is there some possibility to use Elf cache to cache already loaded data on first page so the http request is not needed when going back to first page? Thanks in advance for response |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
Beta Was this translation helpful? Give feedback.
-
I'm trying to implement caching according to tutorial My server side paginated object which is returned from server looks like this There is a problem that when I'm creating store and provide the withEntities props factory function in the createStore call, I get the error
|
Beta Was this translation helpful? Give feedback.
-
I am getting an error that skipWhilePageExists requires 2-3 arguments Now the second argument should be the page, but I am not sure what should be the first argument.
|
Beta Was this translation helpful? Give feedback.
https://ngneat.github.io/elf/docs/features/pagination/