69
69
#[ cfg_attr( debug_assertions, macro_use) ]
70
70
extern crate tracing;
71
71
72
+ #[ macro_use]
73
+ mod signal;
72
74
mod context;
73
75
mod effect;
74
76
mod hydration;
@@ -78,7 +80,6 @@ mod runtime;
78
80
mod scope;
79
81
mod selector;
80
82
mod serialization;
81
- mod signal;
82
83
mod signal_wrappers_read;
83
84
mod signal_wrappers_write;
84
85
mod slice;
@@ -96,7 +97,7 @@ pub use runtime::{create_runtime, RuntimeId};
96
97
pub use scope:: * ;
97
98
pub use selector:: * ;
98
99
pub use serialization:: * ;
99
- pub use signal:: * ;
100
+ pub use signal:: { prelude as signal_prelude , * } ;
100
101
pub use signal_wrappers_read:: * ;
101
102
pub use signal_wrappers_write:: * ;
102
103
pub use slice:: * ;
@@ -105,43 +106,6 @@ pub use spawn_microtask::*;
105
106
pub use stored_value:: * ;
106
107
pub use suspense:: SuspenseContext ;
107
108
108
- /// Trait implemented for all signal types which you can `get` a value
109
- /// from, such as [`ReadSignal`],
110
- /// [`Memo`], etc., which allows getting the inner value without
111
- /// subscribing to the current scope.
112
- pub trait UntrackedGettableSignal < T > {
113
- /// Gets the signal's value without creating a dependency on the
114
- /// current scope.
115
- fn get_untracked ( & self ) -> T
116
- where
117
- T : Clone ;
118
-
119
- /// Runs the provided closure with a reference to the current
120
- /// value without creating a dependency on the current scope.
121
- fn with_untracked < O > ( & self , f : impl FnOnce ( & T ) -> O ) -> O ;
122
- }
123
-
124
- /// Trait implemented for all signal types which you can `set` the inner
125
- /// value, such as [`WriteSignal`] and [`RwSignal`], which allows setting
126
- /// the inner value without causing effects which depend on the signal
127
- /// from being run.
128
- pub trait UntrackedSettableSignal < T > {
129
- /// Sets the signal's value without notifying dependents.
130
- fn set_untracked ( & self , new_value : T ) ;
131
-
132
- /// Runs the provided closure with a mutable reference to the current
133
- /// value without notifying dependents.
134
- fn update_untracked ( & self , f : impl FnOnce ( & mut T ) ) ;
135
-
136
- /// Runs the provided closure with a mutable reference to the current
137
- /// value without notifying dependents and returns
138
- /// the value the closure returned.
139
- fn update_returning_untracked < U > (
140
- & self ,
141
- f : impl FnOnce ( & mut T ) -> U ,
142
- ) -> Option < U > ;
143
- }
144
-
145
109
mod macros {
146
110
macro_rules! debug_warn {
147
111
( $( $x: tt) * ) => {
0 commit comments