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);
});

Comments

Popular posts from this blog

The specified initialization vector (IV) does not match the block size for this algorithm