-
-
Notifications
You must be signed in to change notification settings - Fork 131
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
Issue using afterInfinityModel #123
Comments
i'd like to get @davidgoli thoughts here |
I agree the docs are a bit confusing, but the way it works now is whatever you return from I would not support option 1 here, because I think an important use case for |
Alternatively we could test the returned value from |
@davidgoli I missed that returning a falsy value causes |
@chbonser you're the man thankyou |
When using the
afterInfinityModel
feature if you don't return the resolved promise then_doUpdate
throws "TypeError: infinityModel.pushObjects is not a function".The example and documentation do not make this requirement clear. My suggestion is that either:
_afterInfinityModel
should returninfinityModelPromiseResult
in all cases (including whenafterInfinityModel
is a function)afterInfinityModel
must return the resolved objectI can help with a PR for one of the two options if desired.
The text was updated successfully, but these errors were encountered: