Timeline for How do I access previous promise results in a .then() chain?
Current License: CC BY-SA 4.0
9 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Feb 22, 2021 at 11:32 | comment | added | Raúl Núñez de Arenas Coronado | This is the default behaviour of promises, I'm afraid this doesn't reply the original question, sorry. | |
| Nov 16, 2018 at 17:30 | history | edited | mzalazar | CC BY-SA 4.0 |
Now it works! i tested it using nodejs
|
| Jul 26, 2017 at 10:29 | comment | added | Bergi |
Take a look at the code in the question. The aim is not to get the result of the promise that .then is called on, but results from before that. E.g. thirdPromise accessing the result of firstPromise.
|
|
| Jul 26, 2017 at 7:47 | comment | added | yzfdjzwl | Every promise can get the previous value, what's your meaning? | |
| Jul 25, 2017 at 9:41 | comment | added | Bergi | This doesn't really answer the question about how to access previous results in the chain. | |
| S Jul 25, 2017 at 6:52 | review | Low quality answers | |||
| Jul 25, 2017 at 8:09 | |||||
| S Jul 25, 2017 at 6:52 | review | Late answers | |||
| Jul 25, 2017 at 7:04 | |||||
| Jul 25, 2017 at 6:36 | review | First posts | |||
| Jul 25, 2017 at 6:43 | |||||
| Jul 25, 2017 at 6:34 | history | answered | yzfdjzwl | CC BY-SA 3.0 |