Skip to content

Fix state transition startup order#2535

Merged
alice-i-cecile merged 1 commit into
bevyengine:mainfrom
Jengamon:patch-3
Jul 8, 2026
Merged

Fix state transition startup order#2535
alice-i-cecile merged 1 commit into
bevyengine:mainfrom
Jengamon:patch-3

Conversation

@Jengamon

@Jengamon Jengamon commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

a surprising (understandable imo) detail is that state transitions run before PreStartup (and Startup) in the startup order.

Relevant code: https://github.com/bevyengine/bevy/blob/main/crates/bevy_state/src/app.rs#L336

(The Schedules chapter lists them in the "correct" order, so I'm putting in this PR to make it consistent)

a surprising (understandable imo) detail is that state transitions run *before* PreStartup (and Startup).

Relevant code: https://github.com/bevyengine/bevy/blob/main/crates/bevy_state/src/app.rs#L336
@alice-i-cecile alice-i-cecile added C-Docs Documentation for the code of the website S-Ready-For-Final-Review Ready for a maintainer to consider for merging A-Book C-Correction A typo, problem or factual issue in what we've written and removed C-Docs Documentation for the code of the website labels Jul 8, 2026
@alice-i-cecile alice-i-cecile added this pull request to the merge queue Jul 8, 2026
Merged via the queue into bevyengine:main with commit 1329624 Jul 8, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-Book C-Correction A typo, problem or factual issue in what we've written S-Ready-For-Final-Review Ready for a maintainer to consider for merging

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants