Is it possible to create a State
in NGRX
like below?
export interface Invitation {
id: string;
sender: string;
receiver: string;
}
export interface InvitationsState {
invitations: { [key: string]: EntityState<Invitation> };
loaded: boolean;
error?: any;
}
I've created creating dynamic EntityState
but unable to get it fully implemented.
Question: What will be an alternative way to model such store
?
Got example of creating multiple Entities here, here which are pre-defined ones but not a dynamic one.