Skip to main content

rootEntities

rootEntities is a root selector factory which helps to fetch an array of entities. It requires a root selector factory and produces a root selector which selects an array of entities. It can be used with Redux and NGRX.

declare function rootEntities(rootSelector);
  • rootSelector - is a root selector which has been produced by rootEntity function.
const selectUsers = rootEntities(selectUser);