-
-
Notifications
You must be signed in to change notification settings - Fork 31.7k
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
[docs] Encourage DataGrid in /components/tables/ over alternatives #22637
Conversation
@dtassone It seems that the TypeScript bindings of the grid are not correct, see the reported error. Any idea? |
f58722d
to
569641d
Compare
Yes I did some changes around the typings and
My bad! Fixed in mui/mui-x#298 |
@dtassone Thanks for the fix! Let's wait for the next release of |
Releasing now |
@dtassone I have updated the version to v4.0.0-alpha.2, it fails with different errors now. |
It seems that we should add a step in the CI to make sure the generated types are sound. Then, in a second step, once we can reproduce the fail in material-ui-x, fix it. |
712a299
to
3b29790
Compare
f9579a5
to
712a299
Compare
Co-authored-by: Matt <github@nospam.33m.co>
712a299
to
0f19e36
Compare
@dtassone I have noticed another issue with the types of Anyway, I have removed the live demo as we can still deliver part of the value. |
@@ -100,33 +100,8 @@ module.exports = { | |||
// transpile 3rd party packages with dependencies in this repository | |||
{ | |||
test: /\.(js|mjs|jsx)$/, | |||
include: /node_modules(\/|\\)(material-table|notistack|@material-ui(\/|\\)pickers)/, | |||
use: { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why remove the use
options?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have replaced it with the default Babel loader. It's not required per say for the changes of the pull request. Happy to revert to only propose them once we have a live demo.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But why? We shouldn't fully transpile these modules since that would hide potential mismatches in transpilation targets. If external libraries would start transpiling for modern browsers by default we wouldn't ever notice.
Right now it would just add more transpilation work.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The change was reverted. I have removed the live demo, it wasn't ready.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We will be able to resume the discussion with a future pull request to add a live demo.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The change was reverted. I have removed the live demo, it wasn't ready.
Sure. Just wanted to make sure we understand each other because I asked for a "why" and you gave me a "what".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For the "why", I do no longer have it in context. The build was failing, I copied and pasted the configuration of the workspace. I didn't think twice, I don't remember. Happy to dig in the follow-up pull request :)
Prepare addition of a live demo in the
/components/tables/
page.