I have been following this sample to create an popup with edit actions. However when I try to reopen the popup upon successful edits, the popup content is still showing the old value. I used the below code to reopen the popup.
layer.on("edits", e => {
view.openPopup({
features: e.updatedFeatures
})
editor.viewModel.cancelWorkflow();
});