akita icon indicating copy to clipboard operation
akita copied to clipboard

this.active.indexOf is not a function on removeActive

Open fababracx opened this issue 2 years ago • 2 comments

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 avatar Dec 07 '22 22:12 fababracx

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

Worked around it by extending MultiActiveState instead of ActiveState

esbakker avatar Oct 24 '23 11:10 esbakker

If you setActive with string problem is fixed.

image

And removeActive work.

fababracx avatar Oct 28 '23 09:10 fababracx