Open amerllica opened 3 years ago
that warning should be only shown when function value used inside a function rule like this:
createUseStyles({
a: () => ({
color: () => 'red'
})
})
This should be a bug.
@kof , But even in the below case I got that warning:
createUseStyles(({ colors }) => ({
a: ({ isDisabled }) => ({
color: isDisabled ? colors.gray : colors.primary,
}),
}));
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.
Like I said this should be a bug.
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):
Why this Warning is shown?