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
@@ -15,7 +15,7 @@ use std::{
|
||||
|
||||
/// Provide an error boundary to catch errors from child components
|
||||
pub fn use_error_boundary() -> ErrorBoundary {
|
||||
once(|| provide_context(ErrorBoundary::new()))
|
||||
use_hook(|| provide_context(ErrorBoundary::new()))
|
||||
}
|
||||
|
||||
/// A boundary that will capture any errors from child components
|
||||
|
||||
Reference in new issue
Block a user