Skip to content

Incomplete code groups in manual-visits.mdx #44

@aalhoura

Description

@aalhoura

The below code groups in manual-vists.mdx are incomplete:

<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>

</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>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions