I am a newbie to Ionic, I geted a question today. It’s like this topic’s title.
the code like this:
const [showAlert] = useIonAlert();
return (
<IonButton
onClick={() => {
showAlert('Alert1', [
{
text: 'in button handler show new alert (no response)',
handler: () => {
// !!! this new alert will not show !!!
showAlert('Inside Alert2');
}
}
]);
}}
>
Show Alert (error)
</IonButton>
);
And live sample in this CodeSandBox
(Sorry, English is not my native language, Forgive my wording)