このコミットが含まれているのは:
2026-10-28 00:28:29 +09:00
コミット d6cf992622
27個のファイルの変更、630行の追加、60行の削除
+8
ファイルの表示
@@ -7,6 +7,7 @@ import { localiseTo } from '@/lib/locales'
import { useLocale, useLocaleNavigate } from '@/lib/useLocale'
import { useOverlayStore } from '@/components/RouteBlockerOverlay'
import { prefetchForURL } from '@/lib/prefetchers'
import { isCountsPath } from '@/lib/routeLocales'
import { useClientBehaviourSettings } from '@/lib/useClientBehaviourSettings'
import { cn } from '@/lib/utils'
import { currentRenderContext } from '@/lib/renderContext'
@@ -53,6 +54,7 @@ export default forwardRef<HTMLAnchorElement, Props> (({
const setOverlay = useOverlayStore (s => s.setActive)
const doPrefetch = async () => {
if (isCountsPath (new URL (url).pathname)) return true
try
{
await prefetchForURL (qc, url)
@@ -94,6 +96,12 @@ export default forwardRef<HTMLAnchorElement, Props> (({
ev.preventDefault ()
if (isCountsPath (new URL (url).pathname))
{
navigate (path, { replace, ...(state && { state }) })
return
}
flushSync (() => {
setOverlay (true)
})