How to make effects update the state? of a component after an asynchronous callback

the reason why you need to update the component"s state after an asynchronous callback is because

A value in
  1. state binds a pop-up window to the property used for display
The desired effect of

is that
updates the component state, after an asynchronous callback so that the pop-up component is displayed.

Mar.02,2021

write this pop-up box to a function component:

 const result = yield call(yourService);

 const data = yield call(openDialog, {message: result.message, ...result});
 if(data.Ok === 'OK') {
    //OK
 }
 if(data.CANCEL === 'CANCEL') {
    //CANCEL
 }

 //datapromise.then
Menu