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 trying to perform multiple simultaneous ajax request to a REST api and get a stream that emits a value with a data structure containing the data retrieved by all the responses altogether. For this I'm using zip but I'm getting the following exception from Bacon.js: Uncaught Error: At least one EventStream required
As an example, below there is a simplified version of my code:
Using combineAsArray I didn't get the exception. The problem now is that whenever I get a value in the combined stream that value is an Array of EventStreams instead the an Array with the requests' responses. On the other hand when I use Bacon.fromPromise with my ajax requests instead of Bacon.$.ajax it works nice both with combine and with zip. So my guess here is that Bacon.$.ajax is doing some transformation behind the scene.
I'm trying to perform multiple simultaneous ajax request to a REST api and get a stream that emits a value with a data structure containing the data retrieved by all the responses altogether. For this I'm using zip but I'm getting the following exception from Bacon.js:
Uncaught Error: At least one EventStream required
As an example, below there is a simplified version of my code:
The text was updated successfully, but these errors were encountered: