pub(crate) fn server(global_state: TemplateState, mode: RenderMode<SsrNode>) -> Self {
        Self {
            router: RouterState::default(),
            page_state_store: PageStateStore::new(0), /* There will be no need for the PSS on the
                                                       * server-side */
            global_state: if !global_state.is_empty() {
                GlobalState::new(GlobalStateType::Server(global_state))
            } else {
                GlobalState::new(GlobalStateType::None)
            },
            frozen_app: Rc::new(RefCell::new(None)),
            render_mode: mode,
        }
    }
Initializes a new `RenderCtx` on the server-side with the given global
state and set of widget states.
packages/perseus/src/template/render_ctx.rs