# SSR

{% hint style="info" %}
@frrri should work with @angular/universal out of the box.
{% endhint %}

You can specify whether or not a route awaits results before resolving with the `await` property (see examples below). During SSR the behaviour defaults to awaiting results before resolving the route, so the data is already displayed when serving your page.

You can customise this behaviour with the `awaitPlatformServer` property.

```typescript
const routes: Routes = [
    {
        path: 'posts',
        component: PostsIndexComponent,
        data: instructions({
            'entities': reset(),
            'entities.posts': [
                getMany({
                    await: false, // (default: false) Resolves route before loading data
                    awaitPlatformServer: true // (default: true) Resolves route after data has loaded on server
                }),
            ],
        }),
    }
]
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://bitflut.gitbook.io/frrri/ngxs-crud/recipes/ssr.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
