flame-engine / flame-engine/flame

Add methods to components to simplify replacing children

Open
#2,612 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Dart
Stars
10.8k
Forks
1k
Avg merge
1d 20h
Merged PRs (30d)
21

Description

# Problem to solve

Would be useful to expose simplified ways to replace components within the component tree.

![image](https://github.com/flame-engine/flame/assets/882703/2ae57ca4-ee16-42fa-bb2b-f374890a8c74)

However it is not immediately obvious how these APIs would work wrt some aspects.

# Proposal

I originally wrote [this PR](https://github.com/flame-engine/flame/pull/2303) as a proposal but there was a lot of discussion on the PR about how exactly they should work.

Someone would need to dig into the discussion and figure out the best approach. The actual PR code might or might not be useful at all depending on the chosen requirements.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.