I'm not sure I understand @ngrx/entity
package. There are of course examples but I didn't found any with a state bigger than one property/subject.
So before using @ngrx/entity
my sub state look like below. Yes it's actually a sub state. That means that I've separation per feature but still it isn't single property interface. I have a few model interfaces and State consists of them. Those that are arrays I want to replace with 'entity features'. And from examples I see that Entity is for the whole state?
export interface ListItems {
}
export interface FooObject {
}
export interface State {
property1: ListItems[];
others: FooObject[];
name: string;
isLoading: boolean;
error: string;
}
So to use Enity should I do?
export interface State extends EntityState<?> {
}
And what should I put in place of ?
I have many properties.
or
each model interface ListItems
, FooObject
should extends EntityState
?