Skip to content

Allow setting single components instead of single component tuples in query-based effects #112

@Trouv

Description

@Trouv

All query-based effects require using a component tuple as C being set directly or with some impl Fn(C) -> C. However, it's pretty common that users will only want to update one component, in which case users need to set (MyComponent,) directly or with some impl Fn((MyComponent,)) -> (MyComponent,). Needless to say, the tuplified type is a bit more cumbersome.

This issue is for implementing effect for these types when C is a plain component.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-EffectsArea - concerning effect types.C-FeatureCategory - making something new possible.D-ModestDifficulty - new features, refactors, and challenging bug fixes.S-Ready-For-ImplementationStatus: this issue is ready for someone to pick it up and open a PR!

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions