|
@@ -10,8 +10,6 @@ mod rt;
|
|
use dioxus_core::ScopeState;
|
|
use dioxus_core::ScopeState;
|
|
pub use rt::*;
|
|
pub use rt::*;
|
|
|
|
|
|
-use crate::rt::claim_rt;
|
|
|
|
-
|
|
|
|
pub fn use_init_signal_rt(cx: &ScopeState) {
|
|
pub fn use_init_signal_rt(cx: &ScopeState) {
|
|
cx.use_hook(|| {
|
|
cx.use_hook(|| {
|
|
let rt = claim_rt(cx.schedule_update_any());
|
|
let rt = claim_rt(cx.schedule_update_any());
|
|
@@ -96,11 +94,7 @@ impl<T: Clone + 'static> std::ops::Deref for Signal<T> {
|
|
|
|
|
|
impl<T> std::clone::Clone for Signal<T> {
|
|
impl<T> std::clone::Clone for Signal<T> {
|
|
fn clone(&self) -> Self {
|
|
fn clone(&self) -> Self {
|
|
- Self {
|
|
|
|
- t: PhantomData,
|
|
|
|
- id: self.id,
|
|
|
|
- rt: self.rt,
|
|
|
|
- }
|
|
|
|
|
|
+ *self
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|