diff --git a/src/hooks/useStyleRegister.tsx b/src/hooks/useStyleRegister.tsx index d2474a9..7248379 100644 --- a/src/hooks/useStyleRegister.tsx +++ b/src/hooks/useStyleRegister.tsx @@ -493,8 +493,9 @@ export default function useStyleRegister( return (node: React.ReactElement) => { let styleNode: React.ReactElement; + const [times] = cache.get(['style', ...fullPath]) || [0]; - if (!ssrInline || isMergedClientSide || !defaultCache) { + if (!ssrInline || isMergedClientSide || !defaultCache || (ssrInline && !isMergedClientSide && !defaultCache && times > 1)) { styleNode = ; } else { styleNode = (