Mui-datatables: rawColumns function creates a crash when inserting row into new table

Created on 2 Dec 2018  路  2Comments  路  Source: gregnb/mui-datatables

Hello Greg!

Thanks for creating this lib, I'm using it a lot now :) I'm experiencing some strange behavior when I'm using this lib that I'm hoping you can enlighten me on.

Expected Behavior

I've created a form with mui-datatables and formik which allows a user to insert multiple rows on an existing data table when they press on an "Add Row" Button. In versions post-beta-38 my add row button crashes my app.

After a bit of digging I've isolated it to this change: b59d883c8b3984ac7fde330c46fcc5aee8165cbd. If I revert that code change then things work great.

The problem is, I don't know enough about what's going on in that code to fix the problem, I've just come to the result I have by removing the parts until I found something that succeeded. I'm rendering client side, if that helps any.

If necessary I can put up a repro but that'll take a while so I just thought I'd ask first.

Your Environment

| Tech | Version |
|--------------|---------|
| Material-UI | 3.2 - 3.6 |
| MUI-datatables | 2.0.0-beta38 and beyond |
| React | 16.4.1 |
| browser | Chromium |

bug help wanted

Most helpful comment

Closing this as I've installed the latest version (2.8.0) and this behavior has disappeared.

All 2 comments

Try to create a small reproducible repo if you can. I'm really strapped for time nowadays as you can see the issues are piling up

Closing this as I've installed the latest version (2.8.0) and this behavior has disappeared.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

T-pirithiviraj picture T-pirithiviraj  路  3Comments

harryluo91 picture harryluo91  路  3Comments

gangakrishh picture gangakrishh  路  3Comments

Andy1408 picture Andy1408  路  4Comments

alexanderwhatley picture alexanderwhatley  路  4Comments