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
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e9f402-1a44.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e9f402-1a44.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?