jdcalkins / ng2-data-table

DataTable - Simple table component with sorting, pagination, and row select/multi-select for Angular2
MIT License
7 stars 7 forks source link

RowSelector error when using an immutable list of item #18

Open dgri opened 7 years ago

dgri commented 7 years ago

Error in ./RowSelectorHead class RowSelectorHead - inline template:1:8 caused by: Can't add property isSelected, object is not extensible

I'm trying to use your library with data comming from an ngrx store. In dev mode, I use deepFreeze library to set my data immutable. You're trying to add some properties to the source object and it's forbidden in my case =)

Thx.

jdcalkins commented 7 years ago

Hello,

Thanks for reporting the issue. I'll have to think of a different way to track the state of the data without adding properties. I can see how this could become a larger issue down the road.