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

Make SsrState public
This commit is contained in:
Jonathan Kelley 2023-07-31 17:37:35 -07:00 committed by GitHub
commit 59016007f2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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![