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
In Astro 4.0, the `app.render()` signature that allowed passing `routeData` and `locals` as optional arguments was deprecated in favor of a single optional `renderOptions` argument.
309
+
310
+
Astro 6.0 removes this signature entirely. Attempting to pass these separate arguments will now cause an error in your project.
311
+
312
+
#### What should I do?
313
+
314
+
Review your `app.render` calls and pass `routeData` and `locals` as properties of an object instead of as multiple independent arguments:
In Astro 4.0, the `handleForms` prop of the `<ClientRouter />` component was deprecated, as it was no longer necessary to opt in to handling `submit` events for `form` elements. This functionality has been built-in by default and the property, if still included in your project, silently had no impact on form submission.
328
+
329
+
Astro 6.0 removes this prop entirely and it now must be removed to avoid errors in your project.
330
+
331
+
#### What should I do?
332
+
333
+
Remove the `handleForms` property from your `<ClientRouter />` component if it exists. It has provided no additional functionality, and so removing it should not change any behavior in your project:
In Astro 4.8.4, the `with` option of the programmatic `prefetch()` function was deprecated in favor of a more sensible default behavior that no longer required specifying the priority of prefetching for each page.
356
+
357
+
Astro 6.0 removes this option entirely and it is no longer possible to configure the priority of prefetching by passing the `with` option. Attempting to do so will now cause errors.
358
+
359
+
By default, Astro's prefetching now uses an automatic approach that will always try to use `<link rel="prefetch>` if supported, or will fall back to `fetch()`.
360
+
361
+
#### What should I do?
362
+
363
+
Review your `prefetch()` calls and remove the `with` option if it still exists:
364
+
365
+
```ts
366
+
prefetch('/about', { with: 'fetch' });
367
+
prefetch('/about');
368
+
```
369
+
370
+
<ReadMore>Learn more about [prefetching](/en/guides/prefetch/).</ReadMore>
371
+
304
372
## Changed Defaults
305
373
306
374
Some default behavior has changed in Astro v5.0 and your project code may need updating to account for these changes.
0 commit comments