-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
<MatrialUi.WithTheme> crash if classes property only is provided #17
Comments
<MatrialUi.WithTheme>
crash if classes
property only is provided
You're absolutely right, that should work fine! I'll take a look! |
Actually, that might be due to a regression in |
Is this comment in the readme referring to the If so, is this the only way to style with access to the theme, or is there also plans for it to be accessible via a ppx? If there is anything I can do to help, give me a shout :) |
@PTaylour Thanks for the offer, I'm overwhelmed at work right now, so if you want to take a look at the ppx / theme integration (the object is not fully typed and yet and |
I'll take a look :). Still new to all of this (and my bucklescript level of success has so far been mixed) — but no harm giving it a go! |
@jsiebern So a good thing for me to start with would be to type the rest of the theme object here https://github.com/jsiebern/reason-mui-binding-generator/blob/master/src/fixed-modules/MaterialUi_Theme.re using |
@PTaylour Yes, I believe that would be a good place to start! I believe that bs still has no adequate way of converting / accessing multiple object levels, so that makes it a bit challenging. Could you open a new issue for this please? I fixed the bug discussed in this issue just now and will close it once published |
Could you kindly check |
Fixed in |
This code worked in previous versions:
but recently it stopped with following error:
If I add
classesWithTheme={theme => []}
then my code runs correctly again. But it shouldn't be necessary IMO.The text was updated successfully, but these errors were encountered: