Slight improvement to the v1-alpha docs
See original GitHub issueTrying out an example like AppBar fails with
TypeError: this.context.styleManager is undefined
render
node_modules/material-ui/styles/withStyles.js:98
95 |
96 |
97 | var classes = void 0;
> 98 | var renderedClasses = this.context.styleManager.render(styleSheet);
99 |
100 | if (classesProp) {
101 | classes = (0, _extends3.default)({}, renderedClasses, (0, _keys2.default)(classesProp).reduce(function (acc, key) {
Wrapping that component in a <MuiThemeProvider/>
(as mentioned in the Usage page) solves the issue.
But there might be people landing directly on that page or noobs like me that forget.
Maybe add a generic App.js
that ends up including the component ?
Willing to do the work if it sounds fine.
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (6 by maintainers)
Top Results From Across the Web
Slight improvement to the v1-alpha docs · Issue #7417 · mui/material ...
Trying out an example like AppBar fails with TypeError: this.context.styleManager is undefined render node_modules/material-ui/styles/withStyles.js:98 95 ...
Read more >Package google.identity.accesscontextmanager.v1alpha
An access policy is globally visible within an organization, and the restrictions it specifies apply to all projects within an organization. Fields. name....
Read more >API Changelog | Google Earth Engine
Improved the user interface for Earth Engine App creation and management flows. ... Expanded only exact matches on API documentation search in Code...
Read more >API Versioning - VMware Docs
Upgrade to a minor version to use the features and improvements in ... When stable versions become available, v1 beta and v1 alpha...
Read more >API Overview | Kubernetes
Built-in beta API versions have a maximum lifetime of 9 months or 3 minor releases (whichever is longer) from introduction to deprecation, ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I have updated the link to the usage section.
Do you mean for the warning message? Yes, that sounds like a good idea!