Lovefield promises and ES6 promises

79 views
Skip to first unread message

Blake McBride

unread,
Jun 11, 2018, 8:29:38 AM6/11/18
to lovefield-users
Hi,

I noticed that while Lovefield uses a lot of promises, they're not ES6 promises.  I have an app that is not working and it is intermixing LoveField promises with ES6 promises in one "then" chain.  I feel this may be a problem.  Is it?

Thanks!

Blake McBride

Arthur Hsu

unread,
Jun 11, 2018, 12:44:29 PM6/11/18
to lovefield-users
Did you try to use dist/lovefield.es6.js instead? That one does not have any polyfills of ES6 Promise/Map/Set.

dpa...@chromium.org

unread,
Jun 21, 2018, 8:14:39 PM6/21/18
to lovefield-users
Lovefield internally uses goog.Promise from the Closure library, but I have never found this to be a problem with using it with native ES6 promises. If you can post an example that would be helpful. Maybe your issue is unrelated to Promises.

Blake McBride

unread,
Jun 21, 2018, 9:21:30 PM6/21/18
to dpa...@chromium.org, lovefield-users

It may very well be a problem I was having with promises.  I started using async/await and I'm having an easier time with it.

Thanks!

Blake


--
You received this message because you are subscribed to the Google Groups "lovefield-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lovefield-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lovefield-users/4d9994ea-33b6-4f38-ab46-07a8349f4680%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages