Entity state selector

An entity state selector can be:

The first case is useful when the id key of an entity is not id, but another one: Id, uuid, etc. Then you can define here the key name, or a function which returns its value from an entity.

const selector1 = {
collection: createFeatureSelector('users'),
id: 'Id',
const selector2 = {
collection: state => state.companies,
id: 'uuid',
const selector3 = {
collection: stateKeys(
id: entity => entity.uuid,
Last updated on by MG