Open ricochetbrown opened 6 months ago
https://github.com/angular-architects/ngrx-toolkit/blob/92a47ef4b121aa57cd890813f437a4382de41212/libs/ngrx-toolkit/src/lib/with-data-service.ts#L10
On create, it would be better for this to be null so we can do upserts with updateAll. An entityId doesn't exist yet in those cases but we are forced to pass one in.
We would prefer export type Entity = { id?: EntityId };
export type Entity = { id?: EntityId };
https://github.com/angular-architects/ngrx-toolkit/blob/92a47ef4b121aa57cd890813f437a4382de41212/libs/ngrx-toolkit/src/lib/with-data-service.ts#L10
On create, it would be better for this to be null so we can do upserts with updateAll. An entityId doesn't exist yet in those cases but we are forced to pass one in.