You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Which @ngneat/elf-* package(s) are the source of the bug?
store
Is this a regression?
No
Description
When performing a store.update with multiple entities (using setEntities, addEntities, ...), if two objects have the same ID the resulting store will have them both. Expected?
Obviously it's a bug from the caller, but still I would not expect a tainted store: even throwing an error is a better solution in this case IMO.
Please provide a link to a minimal reproduction of the bug
Which @ngneat/elf-* package(s) are the source of the bug?
store
Is this a regression?
No
Description
When performing a store.update with multiple entities (using setEntities, addEntities, ...), if two objects have the same ID the resulting store will have them both. Expected?
Obviously it's a bug from the caller, but still I would not expect a tainted store: even throwing an error is a better solution in this case IMO.
Please provide a link to a minimal reproduction of the bug
https://stackblitz.com/edit/angular-ivy-xvpq7m?file=src/app/todos/state/todos.repository.ts
Please provide the exception or error you saw
No response
Please provide the environment you discovered this bug in
No response
Anything else?
No response
Do you want to create a pull request?
No
The text was updated successfully, but these errors were encountered: