Expected behavior:
I expect when I add the link:true option to createUseStyles from jss-react the following warning should not show up in my terminal: Warning: [JSS] Rule is not linked. Missing sheet option "link: true".
Describe the bug:
I've been setting up css using the createUseStyles function from react-jss. I get the following error: Warning: [JSS] Rule is not linked. Missing sheet option "link: true".
I read up on the docs a little and I found you can add the link option as an optional behaviour to your createUseStyles function. Sadly, this does not resolve the issue.
I checked the types of the createUseStyles function, it does indeed extend off the "StyleSheetFactoryOptions" type with the link?: boolean added.
Versions (please complete the following information):
- react-jss: 10.0.0
- Browser [e.g. chrome, safari]: N/A
- OS [e.g. Windows, macOS]: MacOS
- React: 18.2.0
- Node: 18.10.0
Expected behavior:
I expect when I add the
link:trueoption tocreateUseStylesfromjss-reactthe following warning should not show up in my terminal: Warning: [JSS] Rule is not linked. Missing sheet option "link: true".Describe the bug:
I've been setting up css using the
createUseStylesfunction fromreact-jss. I get the following error: Warning: [JSS] Rule is not linked. Missing sheet option "link: true".I read up on the docs a little and I found you can add the link option as an optional behaviour to your
createUseStylesfunction. Sadly, this does not resolve the issue.I checked the types of the
createUseStylesfunction, it does indeed extend off the "StyleSheetFactoryOptions" type with thelink?: booleanadded.Versions (please complete the following information):