---
title: v10 to v11
slug: wip/v10-to-v11
createdAt: 2025-07-02T13:04:09.974Z
---

# v10 to v11

This guide outlines how to address the breaking changes when migrating from version 10 to version 11 of Cosmos Web.

## Server Side Rendering

In order to continue server-side rendering as it has worked in the past, it is required to pass a new option to `hydrateDocument` and `renderToString`

| Before                       | After                                                                   |
| ---------------------------- | ----------------------------------------------------------------------- |
| `hydrateDocument(document)`  | hydrateDocument(document, \{<br />serializeShadowRoot: 'scoped'<br />}) |
| `renderToString(htmlString)` | renderToString(document, \{<br />serializeShadowRoot: 'scoped'<br />})  |

