Skip to content

Tracking: bevy-trait-query breakage after changes to WorldQuery API #13798

@RobWalt

Description

@RobWalt

The issue

At some point (#13442, #13343) the WorldQuery API was changed from this ... to this. Most notably, the function signature of init_state and get_state changed which didn't cause any direct problems in the bevy repo itself.

However, it seems like at least one downstream crate, bevy-trait-query, depends on the previous version of this API to access a vital building block: The TraitImplRegistry resource. This was previously possible through the &mut World argument and now isn't possible anymore. It also doesn't appear to be easily fixable with the current API.

Alice also mentioned that things like indexed queries wouldn't be possible anymore without access to resources.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-ECSEntities, components, systems, and eventsP-RegressionFunctionality that used to work but no longer does. Add a test for this!S-Needs-DesignThis issue requires design work to think about how it would best be accomplishedX-ContentiousThere are nontrivial implications that should be thought through

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions