Docs: more examples and docs
This commit is contained in:
1 parent
100a78f321
commit
7fbaf69cab
9 files changed
+177
-54
No files matched your search
@@ -778,7 +778,7 @@ Any function prefixed with "use" should not be called conditionally.
|
||||
}
|
||||
|
||||
/// There are hooks going on here!
|
||||
fn use_context<T: 'static>(&self) -> &'src Rc<T> {
|
||||
fn use_context<T: 'static>(&self) -> &'src T {
|
||||
self.try_use_context().unwrap()
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user