Reputation:
<button className='plus' onClick={async () => {
await CustomDialog(<ServiceDetailsDialog />, {
title: 'Add Service Details',
showCloseIcon: true,
})
}}>+</button>
How can I make the component rerenders to update data when this dialog closed?
Upvotes: 0
Views: 378
Reputation: 778
The CustomDialog must have an onAfterClose
or something like that, and in that listener you can invoke forceUpdate
Upvotes: 1