File tree Expand file tree Collapse file tree 1 file changed +0
-12
lines changed
packages/qwik-city/src/runtime/src Expand file tree Collapse file tree 1 file changed +0
-12
lines changed Original file line number Diff line number Diff line change 6
6
sync$ ,
7
7
useSignal ,
8
8
useVisibleTask$ ,
9
- type QwikVisibleEvent ,
10
9
untrack ,
11
10
} from '@builder.io/qwik' ;
12
11
import { getClientNavPath , shouldPreload } from './utils' ;
@@ -86,17 +85,6 @@ export const Link = component$<LinkProps>((props) => {
86
85
87
86
useVisibleTask$ ( ( { track } ) => {
88
87
track ( ( ) => loc . url . pathname ) ;
89
- if ( linkProps . onQVisible$ ) {
90
- const event = new CustomEvent ( 'qvisible' ) as QwikVisibleEvent ;
91
-
92
- if ( Array . isArray ( linkProps . onQVisible$ ) ) {
93
- linkProps . onQVisible$
94
- . flat ( 10 )
95
- . forEach ( ( handler ) => ( handler as any ) ?.( event , anchorRef . value ) ) ;
96
- } else {
97
- linkProps . onQVisible$ ?.( event , anchorRef . value ! ) ;
98
- }
99
- }
100
88
// Don't prefetch on visible in dev mode
101
89
if ( ! isDev && anchorRef . value ) {
102
90
handlePrefetch ?.( undefined , anchorRef . value ! ) ;
You can’t perform that action at this time.
0 commit comments