chore(ScriptBrowser): disable prefetching for script links to improve loading behavior

This commit is contained in:
Bram Suurd
2024-10-24 11:09:48 +02:00
parent a6037dd454
commit 1504a6e134

View File

@@ -125,6 +125,7 @@ const ScriptBrowser = ({
pathname: "/scripts",
query: { id: script.title },
}}
prefetch={false}
className={`flex cursor-pointer items-center justify-between gap-1 px-1 py-1 text-muted-foreground hover:rounded-lg hover:bg-accent/60 hover:dark:bg-accent/20 ${
selectedScript === script.title
? "rounded-lg bg-accent font-semibold dark:bg-accent/30 dark:text-white"