pub async fn get_state_for_path(
        &self,
        path: PathWithoutLocale,
        locale: String,
        entity_name: &str,
        was_incremental: bool,
        req: Request,
    ) -> Result<PageDataPartial, ServerError> {
        let translator = self
            .translations_manager
            .get_translator_for_locale(locale)
            .await?;
        let StateAndHead { state, head } = self
            .get_state_for_path_internal(
                path,
                &translator,
                entity_name,
                was_incremental,
                req,
                None,
                None,
                false, /* This is not an initial load (so the browser will need a little `Ok` in
                        * the `Value`) */
            )
            .await?;

        Ok(PageDataPartial {
            state: state.state,
            head,
        })
    }
Gets the state for the given path. This will render the head, but it
will *not* render the contents, and, as a result, will not engage
with any dependencies this page/widget may have. If this is used to
get the state of a capsule, the head will of course be empty.

This assumes the given locale is actually supported.
packages/perseus/src/turbine/serve.rs