gabrielguerrero / ngrx-traits

NGRX Traits is a library to help you compose and reuse state logic in your angular app. There is two versions, @ngrx-traits/signals supports ngrx-signals, and @ngrx-traits/{core, common} supports ngrx.
MIT License
44 stars 3 forks source link

allow disabling clear selection on filter an sort #97

Closed gabrielguerrero closed 4 weeks ago

gabrielguerrero commented 4 weeks ago

withEntitiesSingleSelection and withEntitiesMultiSelection, currently clear the selection if a filter or a remoter sort happens, because both cloud create an invalid selection if the previously selected entities are no longer present There are some cases where dev might not like this behaviour, so this PR is to add two flags, cleanOnFilter and clearOnRemoteSort, to both traits. These flags default to true and, when set to false, will disable this behaviour.

github-actions[bot] commented 4 weeks ago

:tada: This issue has been resolved in version 17.8.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: