Skip to content

Conversation

@Lyndon-Mackay
Copy link
Contributor

if entity was despawned such as in a hierachy

Objective

Solution

  • Changes the state_scoped code to use try despawn

Testing

  • I updated example state_scoped to include children with DespawnOnExit/DespawnOnEnter and added a brief explanation then I ran the examples

@alice-i-cecile alice-i-cecile added C-Bug An unexpected or incorrect behavior D-Straightforward Simple bug fixes and API improvements, docs, test and examples S-Needs-Review Needs reviewer attention (from anyone!) to move forward A-States App-level states machines labels Nov 16, 2025
@alice-i-cecile alice-i-cecile added this to the 0.18 milestone Nov 16, 2025
@alice-i-cecile
Copy link
Member

CI has found a couple of spelling errors for you :)

@Lyndon-Mackay
Copy link
Contributor Author

CI has found a couple of spelling errors for you :)

Fixed!

Copy link
Contributor

@mgi388 mgi388 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. I left suggestions for nits on doc comment formatting for consistency with what is there. Feel free to apply the suggestions yourself, I just did it with the PR reviewer so hopefully I got the suggestions right.

@Lyndon-Mackay
Copy link
Contributor Author

LGTM. I left suggestions for nits on doc comment formatting for consistency with what is there. Feel free to apply the suggestions yourself, I just did it with the PR reviewer so hopefully I got the suggestions right.

Thank you changes applied.

@alice-i-cecile alice-i-cecile added S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it and removed S-Needs-Review Needs reviewer attention (from anyone!) to move forward labels Nov 17, 2025
Copy link
Member

@janhohenheim janhohenheim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh yes, I've run into this plenty of times. Thanks!

@janhohenheim janhohenheim added the C-Refinement Improves output quality, without fixing a clear bug or adding new functionality. label Nov 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-States App-level states machines C-Bug An unexpected or incorrect behavior C-Refinement Improves output quality, without fixing a clear bug or adding new functionality. D-Straightforward Simple bug fixes and API improvements, docs, test and examples S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DespawnOnExit / DespawnOnEnter causes log spam when despawning hierarchies

4 participants