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
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.
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.