make ssrstate public

This commit is contained in:
Evan Almloff 2023-07-25 15:29:40 -07:00
parent d637ef187c
commit a4ed9bc0ef

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