Skip to content

Commit

Permalink
make WhenVisible children optional in React
Browse files Browse the repository at this point in the history
  • Loading branch information
PedroAugustoRamalhoDuarte committed Oct 20, 2024
1 parent 378aaaa commit 8ce1fbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react/src/WhenVisible.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import { ReloadOptions, router } from '@inertiajs/core'
import { createElement, ReactChild, useEffect, useRef, useState } from 'react'

interface WhenVisibleProps {
children: ReactChild
fallback: ReactChild
data: string | string[]
children?: ReactChild
params?: ReloadOptions
buffer?: number
as?: string
Expand Down

0 comments on commit 8ce1fbc

Please sign in to comment.