Skip to content

Commit f0854ac

Browse files
authored
Update .changeset/rare-pears-walk.md
1 parent 8da4a37 commit f0854ac

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.changeset/rare-pears-walk.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,6 @@
22
"react-router": minor
33
---
44

5-
Add `loaderData` and deprecate `data` where possible
5+
Add `loaderData` arguments/properties alongside existing `data` arguments/properties to provide consistency and clarity between `loaderData` and `actionData` across the board
6+
- Updated types: `Route.MetaArgs`, `Route.MetaMatch`, `MetaArgs`, `MetaMatch`, `Route.ComponentProps.matches`, `UIMatch`
7+
- `@deprecated` warnings have been added to the existing `data` properties to point users to new `loaderData` properties, in preparation for removing the `data` properties in a future major release

0 commit comments

Comments
 (0)