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

EntityStore - Store reset does not emit entityAction #1080

Open
salarenko opened this issue Feb 7, 2024 · 0 comments
Open

EntityStore - Store reset does not emit entityAction #1080

salarenko opened this issue Feb 7, 2024 · 0 comments

Comments

@salarenko
Copy link

salarenko commented Feb 7, 2024

Is this a regression?

No

Description

EntityStore allows to listen to the store actions by subscribing to class EntityStore.selectEntityAction$.
Resetting the EntityStore does not result in any action despite the store state being changed.

Snippet:

const store = new EntityStore();
store.selectEntityAction$.subscribe(console.log);

store.add({ id: '1' });     // Action emitted
store.add({ id: '2' });     // Action emitted
store.remove('1' );         // Action emitted

store.reset();  // No action emitted 😢

Please provide a link to a minimal reproduction of the bug

No response

Please provide the exception or error you saw

No response

Please provide the environment you discovered this bug in

"@angular/core": "17.1.0",
"@datorama/akita": "8.0.1",
"@datorama/akita-ng-entity-service": "8.0.0"

Anything else?

No response

Do you want to create a pull request?

No

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