Merge pull request #1251 from DioxusLabs/make-ssr-state-public

Make SsrState public
This commit is contained in:
Jonathan Kelley authored and GitHub committed 2023-07-31 17:37:35 -07:00
commit 59016007f2
1 file changed
+2 -1
+2 -1
View File
@@ -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![