Fix diffing cloned rsx nodes by deep cloning nodes before mounting them (#3271)
* Fix diffing cloned rsx nodes by deep cloning nodes before mounting them * fix clippy
This commit is contained in:
1 parent
2c1215c6a4
commit
354c4ce9cc
5 files changed
+99
-4
No files matched your search
@@ -70,6 +70,15 @@ impl SuspendedFuture {
|
||||
pub fn task(&self) -> Task {
|
||||
self.task
|
||||
}
|
||||
|
||||
/// Create a deep clone of this suspended future
|
||||
pub(crate) fn deep_clone(&self) -> Self {
|
||||
Self {
|
||||
task: self.task,
|
||||
placeholder: self.placeholder.deep_clone(),
|
||||
origin: self.origin,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// A context with information about suspended components
|
||||
|
||||
Reference in new issue
Block a user