You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This change only affects maintainers of third-party adapters. In the Integration API, the `app.render()` method of the `App` class has been simplified.
6
+
7
+
Instead of two optional arguments, it now takes a single optional argument that is an object with two optional properties: `routeData` and `locals`.
8
+
```diff
9
+
app.render(request)
10
+
11
+
- app.render(request, routeData)
12
+
+ app.render(request, { routeData })
13
+
14
+
- app.render(request, routeData, locals)
15
+
+ app.render(request, { routeData, locals })
16
+
17
+
- app.render(request, undefined, locals)
18
+
+ app.render(request, { locals })
19
+
```
20
+
The current signature is deprecated but will continue to function until next major version.
this.#logger.warn("deprecated",`The adapter ${this.#manifest.adapterName} is using a deprecated signature of the 'app.render()' method. From Astro 4.0, locals and routeData are provided as properties on an optional object to this method. Using the old signature will cause an error in Astro 5.0. See https://github.com/withastro/astro/pull/9199 for more information.`)
0 commit comments