Unverified Commit cb5e75d9 authored by lijianan's avatar lijianan Committed by GitHub

example: fix example error (#54599)

example: fix example error
parent 6506c1ce
......@@ -3,13 +3,14 @@
import React from 'react'
import { useServerInsertedHTML } from 'next/navigation'
import { StyleProvider, createCache, extractStyle } from '@ant-design/cssinjs'
import type Entity from '@ant-design/cssinjs/es/Cache'
interface StyledRegistryProps {
children: React.ReactNode
}
const StyledComponentsRegistry = ({ children }: StyledRegistryProps) => {
const cache = createCache()
const cache = React.useMemo<Entity>(() => createCache(), [])
useServerInsertedHTML(() => (
<style
id="antd"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment