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

fix: reparent within another slot instance #5021

Merged
merged 2 commits into from
Mar 20, 2025
Merged

fix: reparent within another slot instance #5021

merged 2 commits into from
Mar 20, 2025

Conversation

TrySound
Copy link
Member

Ivan found a bug. Reparent slot child into another instance of the same slot got this child removed.

Now refactored whole thing (almost). The main difference is same parent move will not do delete/paste but will just update child position. This fixes bug above and makes other logic slightly simpler.

Rewritten reparentInstance with reparentInstanceMutable to simplify testing and make it composable (if ever need). Added more tests.

@TrySound TrySound requested review from kof and istarkov March 19, 2025 15:34
Copy link
Member

@kof kof left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sounds like its all covered by tests and doestn't need manual testing

Ivan found a bug. Reparent slot child into another instance of the
same slot got this child removed.

Now refactored whole thing (almost). The main difference is same parent
move will not do delete/paste but will just update child position.
This fixes bug above and makes other logic slightly simpler.

Rewritten reparentInstance with reparentInstanceMutable to simplify
testing and make it composable (if ever need).
@TrySound TrySound merged commit 47d0517 into main Mar 20, 2025
17 checks passed
@TrySound TrySound deleted the reparent branch March 20, 2025 14:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants