flexyford / impagination

A lazy data layer for your paged records
102 stars 7 forks source link

Filter is not applied after Dataset reset is called #41

Closed tiberiumihai closed 6 years ago

tiberiumihai commented 6 years ago

I'm using this with a RefreshControl in React-Native.

When I'm pulling-to-refresh, I'm calling Dataset.reset, which should reset the state, but the filters that I have added are no longer take in consideration because filter callback is not passed into state in Dataset.reset function.

tiberiumihai commented 6 years ago

42 Added a PR for this.

flexyford commented 6 years ago

Thanks for the help! Fixed in #42