SidebarItem when hover sometime* calling +page.js making a lot of duplicated requests #1284
-
href attribute is set to certain page eg. how do i fix this behavior when hovering over SidebarItem component and prevent hovering over to this component to call/fetch within |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
previously tried https://kit.svelte.dev/docs/link-options#data-sveltekit-preload-data changing |
Beta Was this translation helpful? Give feedback.
previously tried
load({fetch, untrack, url})
andwindow.location.pathname
to workaround this behaviour.https://kit.svelte.dev/docs/link-options#data-sveltekit-preload-data
changing
hover
totap
fixed this annoying hover feature because utilizing +page.js of svelte/kit making quite a lot of zombie requests every time there's an hover/mouse over, just doesn't make sense for my application, as wasteful requests are just that useless/inefficient, and my app's already inefficient as it is.