-
Notifications
You must be signed in to change notification settings - Fork 2
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
set.has
does not work well with pagination
#60
Comments
@ilyavf wouldn't the change to ignore pagination during .has potentially cause new instances to incorrectly appear on multiple pages? e.g you have two different widgets showing different pages of some real-time enabled type, a third widget creates (and saves) a new instance of that type. Instead of ignoring pagination, I think .has needs to check if the id exists in the range defined by the pagination props, though I'm not sure how that would work with string or compound ids. |
My issue #59 touches on a related id & pagination problem |
After discussing this with Justin I believe this issue can be closed. There is no ideal generic solution for this problem and the best we can do going forward is document the behavior and allow users to implement an application specific solution for it if they desire. I'll open a new issue for that task. #66 was created to document this behavior and a method of overriding it with an application specific implementation. |
Having algebra with
offsetLimit
thehas
method does not recognize a new item as a part of the paginated set:This peculiarity eliminates an updated item with can-connect real-time behavior from the live list:
The text was updated successfully, but these errors were encountered: