We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0658d23 commit 1aeba8aCopy full SHA for 1aeba8a
1 file changed
packages/qwik-router/src/runtime/src/qwik-router-component.tsx
@@ -817,6 +817,11 @@ export const useQwikRouter = (props?: QwikRouterProps) => {
817
.catch((err) => {
818
// If the view transition fails, navigate to the page anyway
819
navigate();
820
+ if (err instanceof DOMException && err.name === 'TimeoutError') {
821
+ throw new Error(
822
+ 'View transition timed out. This can happen if you have "disableCache" in your browser devtools enabled.'
823
+ );
824
+ }
825
// Re-throw the error on console
826
throw err;
827
})
0 commit comments