-
Notifications
You must be signed in to change notification settings - Fork 17
Incomplete code groups in manual-visits.mdx #44
Copy link
Copy link
Open
Description
The below code groups in manual-vists.mdx are incomplete:
docs/v2/the-basics/manual-visits.mdx
Lines 679 to 708 in a9f110c
| <CodeGroup> | |
| ```js Vue icon="vuejs" | |
| import { router } from '@inertiajs/vue3' | |
| router.prependToProp('notifications', (current, props) => { | |
| return { | |
| id: Date.now(), | |
| message: `Hello ${props.user.name}\ | |
| ``` | |
| ```js React icon="react" | |
| import { router } from '@inertiajs/react' | |
| router.prependToProp('notifications', (current, props) => { | |
| return { | |
| id: Date.now(), | |
| message: `Hello ${props.user.name}\ | |
| ``` | |
| ```js Svelte icon="s" | |
| import { router } from '@inertiajs/svelte' | |
| router.prependToProp('notifications', (current, props) => { | |
| return { | |
| id: Date.now(), | |
| message: `Hello ${props.user.name}\ | |
| ``` | |
| </CodeGroup> |
docs/v2/the-basics/manual-visits.mdx
Lines 1031 to 1055 in a9f110c
| </CodeGroup> | |
| Returning `false` from the `onBefore()` callback will cause the visit to be cancelled. | |
| <CodeGroup> | |
| ```js Vue icon="vuejs" | |
| import { router } from '@inertiajs/vue3' | |
| router.delete(`/users/${user.id}\ | |
| ``` | |
| ```js React icon="react" | |
| import { router } from '@inertiajs/react' | |
| router.delete(`/users/${user.id}\ | |
| ``` | |
| ```js Svelte icon="s" | |
| import { router } from '@inertiajs/svelte' | |
| router.delete(`/users/${user.id}\ | |
| ``` | |
| </CodeGroup> |
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels