このコミットが含まれているのは:
@@ -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)
|
||||
})
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする