-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Preact throws with @material-ui/data-grid #3055
Comments
Having the same problem. What can I do besides forking and adjusting @material-ui/data-grid? |
While we support Preact for MUI Core, the support of Preact might be challenging for MUI X. It feels that we rely more on how React behaves than in the core. We might look into it in the future. Bundle size matters, and it could even be important for us if we need to expose an Angular or Vue wrapper with Preact. |
Going to close this out in favor of #4344, which tracks an issue with a more modern version of the library. |
Reproduction
https://codesandbox.io/s/busy-bash-qxfs0
Steps to reproduce
JS error on page load
Expected Behavior
The above code is copy/paste from their example:
https://material-ui.com/components/data-grid#mit-version
Actual Behavior
TypeError: i.current.getLocaleText is not a function
That error is referencing to this LOC:
https://github.com/mui-org/material-ui-x/blob/c179435dbd6a2cf365347b8e555de3271187e2f5/packages/grid/_modules_/grid/components/containers/GridRoot.tsx#L31
The text was updated successfully, but these errors were encountered: