Closed Geczy closed 6 years ago
Hi, @Geczy.
Anything you put into payload
will be returned in the promise. So you can just pass all the data you need.
That is true, but I'm using it with your atomic redux api and the ecosystem there just expects an id
from the response, detail
. I was hoping I could return from the thunk something like:
.then(detail, fullPayload)
to be backwards compatible with your api library
Got it. In that case, you should update the example resource module so as to return more data.
I guess you can use selectors from the entities module within resource module sagas.
I'm going to close this since it's out of the scope of this library.
I need more data than just the
id
from a promise responseHow can I do that?