re export renderers in dioxus
This commit is contained in:
1 parent
b291a5c0b0
commit
af1749d7be
61 files changed
+860
-100
No files matched your search
@@ -1,4 +1,4 @@
|
||||
use dioxus::prelude::*;
|
||||
use dioxus_core::prelude::*;
|
||||
use serde::{de::DeserializeOwned, Serialize};
|
||||
use std::any::Any;
|
||||
use std::cell::Cell;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
//! Launch helper macros for fullstack apps
|
||||
#![allow(unused)]
|
||||
use crate::prelude::*;
|
||||
use dioxus::prelude::*;
|
||||
use dioxus_core::prelude::*;
|
||||
#[cfg(feature = "router")]
|
||||
use dioxus_router::prelude::*;
|
||||
|
||||
|
||||
@@ -11,9 +11,6 @@ where
|
||||
{
|
||||
use dioxus_router::prelude::RouterConfig;
|
||||
|
||||
#[cfg(feature = "ssr")]
|
||||
let context = crate::prelude::server_context();
|
||||
|
||||
let cfg = props;
|
||||
render! {
|
||||
dioxus_router::prelude::Router::<R> {
|
||||
@@ -23,8 +20,9 @@ where
|
||||
.history({
|
||||
#[cfg(feature = "ssr")]
|
||||
let history = dioxus_router::prelude::MemoryHistory::with_initial_path(
|
||||
context
|
||||
.request_parts().unwrap()
|
||||
crate::prelude::server_context()
|
||||
.request_parts()
|
||||
.unwrap()
|
||||
.uri
|
||||
.to_string()
|
||||
.parse()
|
||||
@@ -44,7 +42,7 @@ where
|
||||
);
|
||||
history
|
||||
})
|
||||
},
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user