You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
From 1.24.0 Sveltekit throws an uncaught error navigation was aborted whenever the navigation is willingly cancelled by the client. Cancelling the navigation can happen for various valid reasons, throwing an error seems to be unwanted.
Is there anyway to catch the lifecycle error? Would a warning make more sense there?
When adding some delay (simulating a long page load) to the "About" page, clicking on "About" and "Home" just after that will trigger an uncaught error:
Try with handling the error by using a try-catch block in the code. Catch the "navigation was aborted" error and handle it appropriately, such as logging a warning instead of throwing an uncaught error.
Describe the bug
From
1.24.0
Sveltekit throws an uncaught errornavigation was aborted
whenever the navigation is willingly cancelled by the client. Cancelling the navigation can happen for various valid reasons, throwing an error seems to be unwanted.Is there anyway to catch the lifecycle error? Would a warning make more sense there?
Reproduction
https://stackblitz.com/edit/sveltejs-kit-template-default-lor1zk
When adding some delay (simulating a long page load) to the "About" page, clicking on "About" and "Home" just after that will trigger an uncaught error:
Enregistrement.de.l.ecran.2023-08-31.a.14.24.23.mov
Logs
No response
System Info
Severity
annoyance
Additional Information
No response
The text was updated successfully, but these errors were encountered: