-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Guard against VisibilityClass being duplicated while cloning #21069
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
Guard against VisibilityClass being duplicated while cloning #21069
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we leave a quick note in the doc comments about this behavior and why it exists? Other than that, I like this solution much better!
The test I provided on the previous pull request is still relevant to test cloning does not introduce duplicates and cloning still adds a visibility class. |
I'll see about adding it back in |
f976d48
to
b336acb
Compare
@dloukadakis I added your test back in and @alice-i-cecile I added some documentation. Let me know if there is anything else I can do to get this across the finish line. Thanks! |
Co-authored-by: Dimitrios Loukadakis <[email protected]>
b336acb
to
9f5345f
Compare
@dloukadakis @tychedelia @eugineerd, want to give this a look? This needs two approvals to be merged. |
Objective
Solution
#[component(clone_behavior=Ignore)]
to avoid cloning this ComponentTesting
Showcase
Before

After
