Skip to content

Commit 9db424f

Browse files
authored
docs(router): fix path param name in "data mutation" guide (#4302)
1 parent 6110bbf commit 9db424f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/router/framework/react/guide/data-mutations.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,9 @@ Without notifying your mutation management library about the route change, it's
8787
Hopefully and hypothetically, the easiest way is for your mutation library to support a keying mechanism that will allow your mutations's state to be reset when the key changes:
8888

8989
```tsx
90-
const routeApi = getRouteApi('/posts/$postId/edit')
90+
const routeApi = getRouteApi('/room/$roomId/chat')
9191

92-
function EditPost() {
92+
function ChatRoom() {
9393
const { roomId } = routeApi.useParams()
9494

9595
const sendMessageMutation = useCoolMutation({

0 commit comments

Comments
 (0)