CacheProvider in Next.js #241
-
|
Hi, I am using I would be grateful for any insights 🙏🏻 . Here's the relevant code: layout.tsx import SvgCacheProvider from 'react-inlinesvg/provider'
export default function RootLayout({ children }: { children: ReactNode }) {
return (
<html lang="lv" className="ergo-ui notranslate" translate="no">
<head>
<link
rel="shortcut icon"
type="image/x-icon"
href={`/assets/favicon/favicon.ico`}
/>
</head>
<body>
<main>
<SvgCacheProvider>{children}</SvgCacheProvider>
</main>
</body>
</html>
)
} |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
Hey @guitarhero17 I didn't try it, but since CacheProvider requires the Cache API, I think it forces everything on the client side. |
Beta Was this translation helpful? Give feedback.
Hey @guitarhero17
I didn't try it, but since CacheProvider requires the Cache API, I think it forces everything on the client side.