Replies: 1 comment
-
Hi krispya! Other than seconding the want for a way to pass traits into relationships to use as a filter for queries, there are two functionalities that i think would really improve ergonomics. for (const e of world.query(Relation('*'))) {
const [target,relation] = e.targetsFor(Relation).map(target => [target,e.get(Contains(target))])
} So we could not, for example, get this inside a updateEach, therefore not being able to change the value without triggering change detection. (is there a way to silence change detection outside of a updateEach? that would be nice to have too :) ) Another one is in relation to the wildcards. Both Overall, i think relations are already extremely useful, especially when adapted to be used as a "multiple instance component without creating a bunch of archetypes" kind of thing, and are only a few steps away from being one of the best things about Koota. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
There is a barebones implementation of relations in Koota, but as people use it there is a need to improve the DX and ergonomics of using them. I'd like to hear feedback from users on what usage patterns they have that could be simplified or uses they wish they had that is not possible with relations right now.
Here is a longstanding one: #4
Another is being able to set state on relation stores in an add call.
What else do you need?
Beta Was this translation helpful? Give feedback.
All reactions