We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No
when calling upsertMany on a store with an array of two objects having the same id attribute, two entries are added.
I would expect duplicates not to appear after the operation.
To reproduce, take todo example and in TodoService replace this.todosStore.add(todo); with this.todosStore.upsertMany([todo, todo]);
this.todosStore.add(todo);
this.todosStore.upsertMany([todo, todo]);
By analyzing the store there is a single entity, but two ids having the same value:
todos: { entities: { zwvlwkpu0fe: { id: 'zwvlwkpu0fe', title: 'Hello', completed: false } }, ids: [ 'zwvlwkpu0fe', 'zwvlwkpu0fe' ], loading: false, error: null, ui: { filter: 'SHOW_ALL' } } }
https://stackblitz.com/edit/akita-todos-app-yvyiiz?file=src/app/todos/state/todos.service.ts
No response
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Is this a regression?
No
Description
when calling upsertMany on a store with an array of two objects having the same id attribute, two entries are added.
I would expect duplicates not to appear after the operation.
To reproduce, take todo example and in TodoService replace
this.todosStore.add(todo);
with
this.todosStore.upsertMany([todo, todo]);
By analyzing the store there is a single entity, but two ids having the same value:
Please provide a link to a minimal reproduction of the bug
https://stackblitz.com/edit/akita-todos-app-yvyiiz?file=src/app/todos/state/todos.service.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: