You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using your package in an electron desktop app and so far it works great.
One thing I'm missing is to have callbacks to respond the events.
Like when I do a retrieveMultiple() call, I want to show an animation, and when the data is fetched I want to stop the animation. Right it just happens when it happens.
Do you think thats possible somehow?
Thanks!
The text was updated successfully, but these errors were encountered:
The main goal of DynamicsNode is keep things simple in order to make very easy to write code for simple tasks. Unfortunately simplicity and asynchronous doesn't seem to fit in the same sentence :(
That's being said, I received several requests to support async calls, so in order to keep improving the tool, I'll try to find a way to do it without sacrificing simplicity.
I was thinking in adding a retriveMultipleAsync method, that returns a Promise. What do you think about that? Do you think it will work for you?
I'll rename this issue and label it as a feature request, and I'll do my best to include it ASAP.
Thanks!
crisfervil
changed the title
Respond to events with callback functions
Add Asynchronous support
Feb 16, 2017
crisfervil
changed the title
Add Asynchronous support
Add asynchronous support
Feb 16, 2017
Thanks for the feedback. The async version of retrieve, that would be awesome!
Another thing I thought of: error handling. Right now if something is wrong with the query, it just fails with a console message. I don't know how to catch that error message (particularly what went wrong). I could do a window.onerror, but that would just tell me something is wrong, not what is wrong.
Do you think the reject callback of the promise could return that error object, that is now in the console?
Thanks for your help.
Looking forward to the async version!
Hi @crisfervil, great tool!
I'm using your package in an electron desktop app and so far it works great.
One thing I'm missing is to have callbacks to respond the events.
Like when I do a
retrieveMultiple()
call, I want to show an animation, and when the data is fetched I want to stop the animation. Right it just happens when it happens.Do you think thats possible somehow?
Thanks!
The text was updated successfully, but these errors were encountered: