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
if store with local sort and local filter have defaults, clearing the filter doesnt return all the items #104
The list loads with the correct filter applied, but if you clear the filter the entities list doesnt return all results, and loses the sort order
Workaround: ensure withEntitiesLocalSort is before withEntitiesLocalFilter in the store definition
Given a store like the following with local sort and filter, and default values for each filter and sort