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

Share Element between Node and another ParentNode #725

Open
jutikornEddie opened this issue Jan 15, 2025 · 2 comments
Open

Share Element between Node and another ParentNode #725

jutikornEddie opened this issue Jan 15, 2025 · 2 comments

Comments

@jutikornEddie
Copy link

In my case, I have:
ParentNode1 that can open:

  • Child1
  • ParentNode2

Both ParentNode1 and ParentNode2 View() function contain Children() function which means they both will have different SharedTransitionScope

If I want to share the element of Child1 and the element of ParentNode2's main child, in this case, would it possible?

@KovalevAndrey
Copy link
Collaborator

@jutikornEddie good question,
if you don't enable shared element transition on ParentNode2's Node like this
Children(withSharedElementTransition = false) then you ParentNode2's children will be accessing the Root's node SharedTransitionScope so Child1 and ParentNode2 children will have the same scope instance. Can you try it?

@KovalevAndrey
Copy link
Collaborator

@jutikornEddie can we close it?

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

No branches or pull requests

2 participants