mirror of
https://github.com/DioxusLabs/dioxus
synced 2025-02-17 06:08:26 +00:00
fix formatting
This commit is contained in:
parent
28d71624ef
commit
083ccd765c
1 changed files with 7 additions and 5 deletions
|
@ -28,8 +28,10 @@ pub fn in_runtime<R>(runtime: Rc<Runtime>, f: impl FnOnce() -> R) -> R {
|
||||||
///
|
///
|
||||||
/// // In a dynamic library
|
/// // In a dynamic library
|
||||||
/// #[inline_props]
|
/// #[inline_props]
|
||||||
/// fn Component(cx: Scope, runtime: Rc<Runtime>) -> Element {
|
/// fn Component(cx: Scope, runtime: std::rc::Rc<Runtime>) -> Element {
|
||||||
/// cx.use_hook(|| override_runtime(runtime.clone()));
|
/// cx.use_hook(|| override_runtime(runtime.clone()));
|
||||||
|
///
|
||||||
|
/// render! { div {} }
|
||||||
/// }
|
/// }
|
||||||
/// ```
|
/// ```
|
||||||
pub fn override_runtime(runtime: Rc<Runtime>) {
|
pub fn override_runtime(runtime: Rc<Runtime>) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue