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:
Evan Almloff authored and GitHub committed 2024-12-02 11:35:01 -08:00
1 parent 2c1215c6a4
commit 354c4ce9cc
5 files changed
+99 -4

No files matched your search

+9
View File
@@ -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