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

this.active.indexOf is not a function on removeActive #1036

Open
fababracx opened this issue Dec 7, 2022 · 2 comments
Open

this.active.indexOf is not a function on removeActive #1036

fababracx opened this issue Dec 7, 2022 · 2 comments

Comments

@fababracx
Copy link

fababracx commented Dec 7, 2022

Is this a regression?

No

Description

When ActiveState is set on Store, removeActive function trigger error if active key is number.

Please provide a link to a minimal reproduction of the bug

No response

Please provide the exception or error you saw

image

Please provide the environment you discovered this bug in

No response

Anything else?

Data in store :
image

Do you want to create a pull request?

No

@fababracx fababracx changed the title this.active.indexOf is not a function on removeActive with ActiveState this.active.indexOf is not a function on removeActive Dec 7, 2022
@esbakker
Copy link

esbakker commented Oct 24, 2023

Any news on this? I also ran into this using akita 8.0.1.

Worked around it by extending MultiActiveState instead of ActiveState

@fababracx
Copy link
Author

If you setActive with string problem is fixed.

image

And removeActive work.

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

2 participants