π½Cache
How to integrate emotion cache with TSS
import { getTssDefaultEmotionCache } from "tss-react"import { TssCacheProvider } from "tss-react"import createCache from "@emotion/cache";
import { TssCacheProvider } from "tss-react";
import { CacheProvider } from "@emotion/react";
const muiCache = createCache({
"key": "my-custom-prefix-for-mui",
"prepend": true
});
const tssCache = createCache({
"key": "my-custom-prefix-for-tss"
});
<CacheProvider value={muiCache}>
<TssCacheProvider value={tssCache}>
{/* ... */}
</TssCacheProvider>
</CacheProvider>;Last updated
Was this helpful?