material-table icon indicating copy to clipboard operation
material-table copied to clipboard

In V 1.57.2 - > New Row Data not added to table data

Open itsmeganesh-cse-iiit opened this issue 6 years ago • 2 comments

Describe the bug In v 1.57.2 - > when I am trying to add new row, row is not adding to the table

To Reproduce Steps to reproduce the behavior:

  1. Go to 'Click New row'
  2. Click on 'insert data'
  3. Click save
  4. loading bar and after nothing will be saved

Desktop (please complete the following information):

  • OS: Windows 10
  • Browser Chrome
  • Version 80.0

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context Add any other context about the problem here.

itsmeganesh-cse-iiit avatar Feb 25 '20 21:02 itsmeganesh-cse-iiit

Problem faced : OnRowadd I mutated the state and re rendered the state using set State and force update but not working.

Resolution: Immutable concept then re rendered the state working as expected

itsmeganesh-cse-iiit avatar Feb 26 '20 05:02 itsmeganesh-cse-iiit

You might need to update the sample code.

Thank you,

lunf avatar Mar 22 '20 04:03 lunf