Fix warnings and compile errors
This commit is contained in:
7 files changed
+26
-241
No files matched your search
@@ -23,6 +23,7 @@ thread_local! {
|
||||
}
|
||||
|
||||
impl ReactiveContext {
|
||||
/// Create a new reactive context
|
||||
pub fn new(scope: Option<ScopeId>) -> Self {
|
||||
let (tx, rx) = flume::unbounded();
|
||||
|
||||
@@ -104,6 +105,11 @@ impl ReactiveContext {
|
||||
.insert(signal, rc_list);
|
||||
}
|
||||
|
||||
/// Get the scope that inner CopyValue is associated with
|
||||
pub fn origin_scope(&self) -> ScopeId {
|
||||
self.inner.origin_scope()
|
||||
}
|
||||
|
||||
/// Wait for this reactive context to change
|
||||
pub async fn changed(&self) {
|
||||
let rx = self.inner.read().receiver.clone();
|
||||
|
||||
Reference in new issue
Block a user