Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FCE-1046] Update comments for better docs #248

Open
wants to merge 14 commits into
base: main
Choose a base branch
from

Conversation

mironiasty
Copy link
Member

@mironiasty mironiasty commented Jan 15, 2025

Description

Remove explicit return types for hooks, and instead use implicit types. This will make documentation more readable. So instead of this, we could have something like this.

Motivation and Context

Make documentation better.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to
    not work as expected)

@mironiasty mironiasty changed the title Update comments for better docs [FCE-1046] Update comments for better docs Jan 17, 2025
Copy link

linear bot commented Jan 17, 2025

@mironiasty mironiasty requested review from czerwiukk and MiloszFilimowski and removed request for czerwiukk January 17, 2025 15:03
@mironiasty mironiasty marked this pull request as ready for review January 17, 2025 15:03
@mironiasty mironiasty requested a review from czerwiukk January 17, 2025 15:03
@@ -13,7 +13,7 @@ type Props = {

export function Tile({ videoTrack, audioTrack, name, id }: Props) {
const isMuted = !audioTrack || audioTrack.metadata?.paused;
const isSpeaking = useVAD([id])[id];
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

praise: nice

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

btw: do you think useVAD({ peerIds: [id] }) would make the api easier to comprehend?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, makes sense. I updated method definition

packages/react-client/src/hooks/useVAD.ts Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants