-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Canceling an angular route causes infinite digest loop #19594
Comments
@alisonelizabeth It looks like the |
@cjcenizal it looks like the dirty_prompt functionality had been previously disabled in the existing code as well, see #19595. You're correct, in the new code, this will not be an issue. That being said, a user is able to cancel with unsaved changes and they will not be prompted to confirm - do you think we need to add support back for this feature? |
I think it's a nice-to-have functionality which we should consider more broadly, not just in the context of a specific app. In that light I think we can close this. |
We recently introduced this change that had an unintended side effect related to this issue.
We use a dirty prompt within Watcher to prompt the user if they have unsaved changes if they navigate away from the edit page. However, when we cancel the navigation event for the confirm prompt, we get this infinite digest loop.
My best guess is because we are no longer rewriting urls, we're hitting an issue on this line where the urls are close but one is encoded and the other is not so they technically do not match and this infinite digest loop happens.
We need to dig in and understand how to address this.
The text was updated successfully, but these errors were encountered: