preact icon indicating copy to clipboard operation
preact copied to clipboard

Preact throws with @material-ui/data-grid

Open jschill opened this issue 3 years ago • 2 comments

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

jschill avatar Mar 10 '21 09:03 jschill

Having the same problem. What can I do besides forking and adjusting @material-ui/data-grid?

mapringg avatar Mar 31 '21 04:03 mapringg

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.

oliviertassinari avatar Jun 03 '21 16:06 oliviertassinari