Skip to content
New issue

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

Strange behavior of selectEntityByPredicate #532

Open
dzolotarova opened this issue Oct 18, 2024 · 1 comment
Open

Strange behavior of selectEntityByPredicate #532

dzolotarova opened this issue Oct 18, 2024 · 1 comment

Comments

@dzolotarova
Copy link

Which @ngneat/elf-* package(s) are the source of the bug?

entities

Is this a regression?

No

Description

I tried using selectEntityByPredicate to find which entity is now isFavorite: true. It can only be one favorite entity at a time. But once an entity is selected, it never becomes unselected, even if it should be (by predicate). Other methods like selectManyByPredicate and selectAllEntitiesApply work correctly and dynamically. Perhaps this behavior was intended for selectEntityByPredicate?

Please provide a link to a minimal reproduction of the bug

https://stackblitz.com/edit/vitejs-vite-j8nt1x?file=src%2Fmain.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

Copy link

stackblitz bot commented Oct 18, 2024

Fix this issue in StackBlitz Codeflow Start a new pull request in StackBlitz Codeflow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant