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

vllm : Failed to infer device type

android studio kotlin source is null error

gemini cli getting file not defined error