Could we also support promises?
See original GitHub issueI really enjoy using this library and I feel like we could also use it for promises?
(FSA) Payload would look something like:
{
payload: {
promise: new Promise(...),
}
}
Issue Analytics
- State:
- Created 4 years ago
- Comments:14 (11 by maintainers)
Top Results From Across the Web
Promises | Can I use... Support tables for HTML5, CSS3, etc
"Can I use" provides up-to-date browser support tables for support of front-end ... A promise represents the eventual result of an asynchronous operation....
Read more >Promise - JavaScript - MDN Web Docs
You will also hear the term resolved used with promises — this means that ... used to wrap functions that do not already...
Read more >JavaScript Promises: an introduction - web.dev
Promises simplify deferred and asynchronous computations. A promise represents an operation that hasn't completed yet.
Read more >Native Support for Promises in Node.js - Stack Overflow
But I can't seem to get promises to work (natively) in Node.js. I've tried the following code in Chrome 32 and it works....
Read more >JavaScript Promises – The promise.then, promise.catch and ...
And when the promises complete, you can use the data in them. ... It's also possible that the then method can return another...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@strdr4605 i am referring to https://github.com/klis87/redux-saga-requests/blob/master/packages/redux-saga-requests/src/actions.js#L65, those checks need to be quite strict not to conflict other libraries.
For now I guess u could try this:
Replaced
label
toenhancement
, as I will add official promise driver at some point. Then it will be possible to use external APIs as well like Firebase SDK.