mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-11-10 14:44:12 +00:00
make ssrstate public
This commit is contained in:
parent
d637ef187c
commit
a4ed9bc0ef
1 changed files with 2 additions and 1 deletions
|
@ -164,7 +164,8 @@ pub struct SSRState {
|
|||
}
|
||||
|
||||
impl SSRState {
|
||||
pub(crate) fn new<P: Clone>(cfg: &ServeConfig<P>) -> Self {
|
||||
/// Create a new [`SSRState`].
|
||||
pub fn new<P: Clone>(cfg: &ServeConfig<P>) -> Self {
|
||||
if cfg.incremental.is_some() {
|
||||
return Self {
|
||||
renderers: Arc::new(SsrRendererPool::Incremental(RwLock::new(vec![
|
||||
|
|
Loading…
Reference in a new issue