Replies: 2 comments
-
|
Beta Was this translation helpful? Give feedback.
0 replies
-
In your example, you're updating the selected entity, and therefore it emits. If you want to listen to entity id changes only, you can use the selectActiveId stream |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Which @ngneat/elf-* package(s) are the source of the bug?
entities
Description
When upserting entities using
upsertEntities()
in the store theselectActiveEntity()
gets triggered / updated. I would expectselectActiveEntity()
only to be triggered whensetActiveId()
is called.See attached project for reproduction:
select
-inputselectActiveEntity()
observable is being triggered each time you press the reload buttonIs this expected behavior? If so how to prevent this?
Please provide a link to a minimal reproduction of the bug
https://github.com/gerb0n/elf-store-active-entity-issue
Please provide the exception or error you saw
No error, just unexpected behavior
Beta Was this translation helpful? Give feedback.
All reactions