You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expected behavior:
Do not show warning, because it works well.
Describe the bug:
For some reasons I wrote my code like this:
constuseStyles=createUseStyles(({ colors, variables, breakpoints })=>({// above line get the theme variablescropperRoot: {margin: [0,-variables.gutter],},cropContainer: ({ cropWrapSize =250})=>({// above line get the variables from passed props to useState({ cropWrapSize })height: cropWrapSize+44+60,padding: [44,0,60],overflow: 'hidden',background: colors.backgroundIcon,}),
Now I'm faced to this warning:
Warning: [JSS] Function values inside function rules are not supported.
Versions (please complete the following information):
jss: "^10.5.1",
Browser [e.g. chrome, safari]: 89.0.4
OS [e.g. Windows, macOS]: Big Sur 11.2.3
Feel free to add any additional versions which you may think are relevant to the bug.
Why this Warning is shown?
The text was updated successfully, but these errors were encountered:
See, it is a function inside function too. I migrate from JSS to @material-ui/styles, I know it is a wrapper for JSS and ReactJSS but issues were settled inside itself.
Expected behavior:
Do not show warning, because it works well.
Describe the bug:
For some reasons I wrote my code like this:
Now I'm faced to this warning:
Versions (please complete the following information):
Feel free to add any additional versions which you may think are relevant to the bug.
Why this Warning is shown?
The text was updated successfully, but these errors were encountered: