TanStackT
TanStack16mo ago
6 replies
living-lavender

Is there a way to cancel a navigation event in Route.beforeLoad?

Am building an Electron app, where we want some urls to open in a separate window. We would like to handle this on a router or route level instead of manually opening popup windows.

Trying to accomplish this by checking for specific urls in the root route beforeLoad method, but I can't find a way of cancelling the navigation event.
Was this page helpful?