LiveKit docs › Hooks › useMaybeParticipantContext

---

# useMaybeParticipantContext

Returns a participant from the `ParticipantContext` if it exists, otherwise `undefined`.

## Import

```typescript
import { useMaybeParticipantContext } from "@livekit/components-react";

```

## Returns

```typescript
Participant | undefined;

```

---

This document was rendered at 2026-06-07T11:35:00.021Z.
For the latest version of this document, see [https://docs.livekit.io/reference/components/react/hook/usemaybeparticipantcontext.md](https://docs.livekit.io/reference/components/react/hook/usemaybeparticipantcontext.md).

To explore all LiveKit documentation, see [llms.txt](https://docs.livekit.io/llms.txt).