GriddleGriddle / Griddle

Simple Grid Component written in React
http://griddlegriddle.github.io/Griddle/
MIT License
2.5k stars 377 forks source link

Griddle Column is not re-rendering #820

Closed sansetty2510 closed 6 years ago

sansetty2510 commented 6 years ago

Griddle version

1.11.1

Expected Behavior

Need to see the updated new columns

Actual Behavior

Not updating the new columns

Steps to reproduce

I am creating the Column dynamically like i am looping through one column array In some cases like on click on some button i am updating the column array on that time component render method is re-rendering and I am seeing the the updated column name in looping to create the dynamic columns, but problem is it's not reflecting in the DOM.

dahlbyk commented 6 years ago

Closing as duplicate of https://github.com/GriddleGriddle/Griddle/issues/671. There's some discussion over there as to how this might be supported; currently Griddle only parses RowDefinition and ColumnDefinitions on initialization: https://github.com/GriddleGriddle/Griddle/blob/caff6351694e5572bb1198a0fdfb6d617f0c1b05/src/utils/initializer.js#L32-L33.