-
Notifications
You must be signed in to change notification settings - Fork 373
Pass arguments for the on-infinite function #75
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
Comments
You can use the <infinite-loading :on-infinite="getMicroList.bind(null, 'releases')" ref="releases" spinner="circles"> Exactly, it is not the best practice, I will change the type of <infinite-loading @infinite="getMicroList('releases')" ref="releases" spinner="circles"> |
Thank you so much for the help and for the great component! |
@vlahde you're welcome :P |
Works like a charm! I also love the new state system. Thanks again for the great component, man! |
Thanks for your appreciation! Best regards. |
Hello, I have a page that includes a few smaller lists of movies. I ran into a problem when trying to implement on-infinite callback function:
This throws "TypeError: Cannot read property 'call' of undefined":
<infinite-loading :on-infinite="getMicroList('releases')" ref="releases" spinner="circles">
while this is ok:
<infinite-loading :on-infinite="getMicroList" ref="releases" spinner="circles">
Are multiple lists even possible on the same page without having to copy all the callback function code over and over again?
The text was updated successfully, but these errors were encountered: