remove once, restore use_hook
This commit is contained in:
1 parent
36e9eb1160
commit
01726d6656
9 files changed
+19
-23
No files matched your search
@@ -52,7 +52,7 @@ pub fn use_signal<T: 'static>(f: impl FnOnce() -> T) -> Signal<T> {
|
||||
#[cfg(debug_assertions)]
|
||||
let caller = std::panic::Location::caller();
|
||||
|
||||
once(|| {
|
||||
use_hook(|| {
|
||||
Signal::new_with_caller(
|
||||
f(),
|
||||
#[cfg(debug_assertions)]
|
||||
|
||||
Reference in new issue
Block a user