Getting value from resolved promise in redux saga

Redux saga normally return promised from fetch api and sometimes you need to resolve those promises to pass it as data to other components.

Given that you have the following item,

To work with actual data, you can try to use the following code :-

Promise.resolve(state.sysadmin).then(function(value) {
console.log('promising promising ', value);


Popular posts from this blog

Solving Sonarqube :- Project was never analyzed. A regular analysis is required before a branch analysis

spark - pyspark reading from excel files