Can we use Teleport to move component before unmounting? #13034
Unanswered
ghiscoding
asked this question in
Help/Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
My use case is a data grid that uses virtual-scroll and some of the rows can be expanded and contain different Vue component. When I start scrolling, I know when the expanded row becomes out of the viewport and before it gets unmounted. So is it possible to use Teleport in this case? That is to use Teleport to move the component before it gets destroyed by the virtual scroll and whenever it comes back into the viewport then the Teleport comes back to the origin... is that possible with Teleport? If not, are there any other suggestions? I would like to keep the component and its state
Beta Was this translation helpful? Give feedback.
All reactions