mirror of
https://github.com/DioxusLabs/dioxus
synced 2025-02-17 06:08:26 +00:00
Merge pull request #1251 from DioxusLabs/make-ssr-state-public
Make SsrState public
This commit is contained in:
commit
59016007f2
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…
Add table
Reference in a new issue