Hey hey -- this is the 2.1.0 version which includes the distinct option. Wanted to get your opinion on the changes.
In the last PR, I added distinct as a public field, but that requires us to bump to 3.0.0 b/c it isn't backwards compatible (folks implementing the Store would be forced to handle the change).
In order to make this a non-breaking change, I've made distinct only a parameter of the constructor and create the reduceAndNotify NextDispatcher using it.
The alternative would be to make _distinct a private field and use that in the reduceAndNotify function -- I don't think there's a big difference either way but wanted to run this by you before I ship it!
Hey hey -- this is the 2.1.0 version which includes the
distinct
option. Wanted to get your opinion on the changes.In the last PR, I added
distinct
as a public field, but that requires us to bump to 3.0.0 b/c it isn't backwards compatible (folks implementing the Store would be forced to handle the change).In order to make this a non-breaking change, I've made distinct only a parameter of the constructor and create the
reduceAndNotify
NextDispatcher using it.The alternative would be to make
_distinct
a private field and use that in thereduceAndNotify
function -- I don't think there's a big difference either way but wanted to run this by you before I ship it!