rootEntitySelector
rootEntitySelector
is a function which creates a predefined root selector factory.
Its goal is to simply the process of creating root selectors with rootEntity
.
declare function rootEntitySelector(
entityStateSelector,
transformer?,
);
Its parameters are the same as rootEntity
has, but without relationships.
const user = rootEntitySelector(selectUserState);
// later.
const user1 = user();
// the same as.
const user2 = rootEntity(selectUserState);