Closed LinboLen closed 2 years ago
@yackinn
@LinPoLen I'm not sure what the issue is about. Are you reporting a bug or is this a feature request?
Can you setup a minimal reproduction if this is a bug?
ngrx have
const adapter: EntityAdapter<Data> = createEntityAdapter<Data>();
adapter.updateOne(action.page, state);
adapter.updateMany(action.list, state);
but ngneat updateEntities ( updateOne and updateMany ) must provide ids.
should provide Partial<Entity>
will be fine
SomeStore.update(updateEntities(action.data.id, action.data));
https://ngneat.github.io/elf/docs/features/entities/entities
You can do partial updates.
Which @ngneat/effects-* package(s) are relevant/releated to the feature request?
effects
Description
@ngneat/effects
not@ngneat/effects/lib/actions.types
Proposed solution
export Action then can create class Action
Alternatives considered
no more
Do you want to create a pull request?
No