In a modal I have a form with data that can be edited. If the user confirms the update the data is updated and then it will be forwarding the new page. But in this new page the information that appears is still old (before the update). If I give an F5 the new information will appear.
Newinformation
InformationthatappearsfirstwhenIconfirmtheupdate.
AftertheF5
Follow the code below:
updateClonedQuote(): void {
this.canDeactivate = false
const updateQuote = this.cloneQuoteForm.getRawValue() as ClonedQuoteValue
this.quoteService.updateQuote(updateQuote, this.dataClonedQuote.id)
.subscribe(
() => {},
(err) => console.log(err),
() => {
this.modalService.dismissAll()
this.route.navigate(['quotes-abertas/', this.dataClonedQuote.id])
}
)
}