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
When using the entityStore.set([x, y]) method, where x and y are duplicates, the store's ids array will contain this id 2 times (ids.push(x[idKey]); ids.push(y[idKey])), while the entities map will only contain the entity once (entities[x[idKey]] = x; entities[y[idKey]] = y).
The entity query's select methods seem to map the ids array to an array of entities by performing a lookup in this map, which causes the entity to be included 2 times, even though it is only present once in the store.
Please provide a link to a minimal reproduction of the bug
Is this a regression?
No
Description
When using the
entityStore.set([x, y])
method, wherex
andy
are duplicates, the store'sids
array will contain this id 2 times (ids.push(x[idKey]); ids.push(y[idKey])
), while theentities
map will only contain the entity once (entities[x[idKey]] = x; entities[y[idKey]] = y
).The entity query's select methods seem to map the
ids
array to an array of entities by performing a lookup in this map, which causes the entity to be included 2 times, even though it is only present once in the store.Please provide a link to a minimal reproduction of the bug
https://akita-todos-app-ahgmj4.stackblitz.io
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: