webiny / commodo

Commodo is a library of higher order functions (HOFs) that let you create and compose rich data models

Home Page:https://www.github.com/webiny/commodo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

withFields - list values not checking "dirty" flag correctly

adrians5j opened this issue · comments

When having a list of values, assigning anything to the field will actually mark the field as dirty, even if a list was completely the same.

This is mainly because fields receive new array instances, and currently that will make the field consider itself dirty, which is in most cases just wrong.

We need to implement a smarter way of checking the received values, and only mark the field dirty when that's truly the case.