-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Each instance has its own dataset? #1
Comments
Hi @inzanez! There can be many instances on a single resource and as long as they use no (or the same) The getter function for the instance retrieves the desired items from the data-set (or registry as we call it): https://github.com/cyon/vuex-pagination/blob/master/src/createResource.js#L44. That means the same data will usually not have to be fetched twice. |
Ah, I see. And the use of sparse arrays allows to have different paging settings for the different instances. That makes sense. Many thanks! |
@inzanez Exactly! |
@MaxGfeller |
@inzanez Sweet, let me know if you need help :) |
Hi
I've just been scanning through your code. Am I right that although there can be many instances for a single resource, all these instances will store there own data-set internally?
So multiple copies of the same data could be present in the store, assuming that I have two instances with the same page offset & size on the same resource?
The text was updated successfully, but these errors were encountered: