Skip to content

Commit a3c9c58

Browse files
committed
Allow supplying initialStylesheet
1 parent 936ce11 commit a3c9c58

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/basic/useClasses.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,10 +322,11 @@ const applyKeyframes = ({
322322
export const StylesProvider = ({
323323
children,
324324
options = {},
325+
initialStylesheet = undefined,
325326
// TODO: cache import/export
326327
initialCache = defaultCache
327328
}) => {
328-
const stylesheetRef = React.useRef();
329+
const stylesheetRef = React.useRef(initialStylesheet);
329330

330331
const insertStylesheet = React.useCallback(() => {
331332
const id = `useClassesStylesheet`;

0 commit comments

Comments
 (0)