couzic / lenrix

Type-safe, reactive, focusable redux store wrapper
MIT License
24 stars 1 forks source link

Enable custom change detection strategy #46

Open couzic opened 6 years ago

couzic commented 6 years ago
store.changeDetectionStategies({
    myValue: (previousValue, nextValue) => previousValue.myField === nextValue.myField
})

Since this case is so common:

store.changeDetectionSelectors({
    birthDate: _  => _.getTime()
})