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

Use partytracks #151

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Use partytracks #151

wants to merge 1 commit into from

Conversation

third774
Copy link
Collaborator

@third774 third774 commented Jan 8, 2025

No description provided.

@renandincer
Copy link
Member

yay for partytracks!

@threepointone
Copy link
Collaborator

image beautiful

import { useSubscribedState } from './rxjsHooks'
import { useStablePojo } from './useStablePojo'

export const usePeerConnection = (config: PeerConfig) => {
type PartyTracksConfig = ConstructorParameters<typeof PartyTracks>[0]
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Gonna export this properly from partytracks

import type useRoom from './useRoom'

interface UserSession {
username: string
sessionId: string
}

type ApiHistoryEntry = PartyTracks['history']['entries'][number]
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Same here, going to export from partytracks

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.

3 participants