preact
preact copied to clipboard
Preact throws with @material-ui/data-grid
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
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.