--
You received this message because you are subscribed to the Google Groups "angular-data-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to angular-data-d...@googlegroups.com.
To post to this group, send email to angular-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/angular-data-dev/5052f68e-342d-4d67-b433-71e53c737257%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
But my short comment regarding promises vs observables is that they serve different use cases.
When an event is linked to a specific action (request/response) there is always a 1:1 mapping and those cases are served better with promises.
Lovefield also supports observers, in the sense that you can observe a given query, and whenever this query's results change you get notified (without having to manually ever re-run that query).
Oh no, not this discussion again. :p
--
You received this message because you are subscribed to the Google Groups "angular-data-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to angular-data-d...@googlegroups.com.
To post to this group, send email to angular-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/angular-data-dev/deafde03-aaba-432b-8577-3e307003fb0d%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/angular-data-dev/CADcN1GAmzM-_7ZZQ6mVuGZmCS-Ha1%2BcCv3-KWWBOowLu89gFYg%40mail.gmail.com.
Lovefield also supports observers, in the sense that you can observe a given query, and whenever this query's results change you get notified (without having to manually ever re-run that query).Good to hear this. This should be default behavior most of the time. When a result set is a observable array of observables, it can keep itself up-to-date all the time. (if you display it in the view, it will auto-update, on every data-change)And yes, this is turning over a lot of complexity to lovefield, but that is where it belongs. Right? ;)
Lovefield has DDL-ish APIs (schema definition) and DML-ish APIs (queries). All queries are performed asynchronously and return Promises. On the other hand, schema definitions are synchronous, since it makes very little sense the other way. Lovefield is designed to interoperate with major JS frameworks and it shall work with future Angular versions regardless of the async primitives chosen by Angular.