Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FxFor support for ReusableItemComponent #118

Closed
Clashsoft opened this issue Jul 17, 2024 · 0 comments · Fixed by #121
Closed

FxFor support for ReusableItemComponent #118

Clashsoft opened this issue Jul 17, 2024 · 0 comments · Fixed by #121
Assignees
Labels
enhancement New feature or request

Comments

@Clashsoft
Copy link
Member

Clashsoft commented Jul 17, 2024

Is your feature request related to a problem? Please describe.
Since FxFor recreates all components when something changes, there is no way to implement transitions like animations.
In my particular case, I have a component for each item on a map.
When the item updates (by being replaced in the list, it is a record), it is supposed to move across the map.
This is not possible right now.

Describe the solution you'd like
FxFor should reuse component instances when the component class implements ReusableItemComponent.

Describe alternatives you've considered
I am not aware of an alternative, apart from not using FxFor.

Additional context
None.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants