()
| 54 | // leaks cache across SSR requests. |
| 55 | let browserQueryClient: QueryClient | undefined; |
| 56 | function getQueryClient() { |
| 57 | if (typeof window === "undefined") { |
| 58 | // SSR: always create a fresh client per request to prevent cross-user cache leaks |
| 59 | return makeQueryClient(); |
| 60 | } |
| 61 | // Browser: reuse the same client across navigations |
| 62 | if (!browserQueryClient) browserQueryClient = makeQueryClient(); |
| 63 | return browserQueryClient; |
| 64 | } |
| 65 | |
| 66 | const KumoLink = forwardRef< |
| 67 | HTMLAnchorElement, |
nothing calls this directly
no test coverage detected