Skip to content
This repository was archived by the owner on Oct 7, 2025. It is now read-only.
This repository was archived by the owner on Oct 7, 2025. It is now read-only.

Success state sometimes not run #102

Description

@isidornygren

Hello and thanks for an amazing library. I'm running into an issue when using a Success | Failure matcher for action cleanup:

   ...
   ActionState::Cancelled => {
      *state = ActionState::Failure;
   }
   ActionState::Failure | ActionState::Success => {
      commands.entity(*actor).remove::<SomeMarker>();
   }

Which I assumed would run if the action failed or successfully completed at any point. However, after doing some test runs I can see that an action can successfully complete without running the cleanup routine sometimes, but I'm not sure why. I'll investigate a bit on my end and report if I find any further clues.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions