Skip to content

0.17.0

Compare
Choose a tag to compare

Features

  • New hooks: useCallFrame() and useCallObject(). These are recommended over createFrame() and createCallObject() for React applications. They prevent the Duplicate DailyIframe instances are not allowed error by better managing call instances. This is especially useful given the asynchronous nature of call instance lifecycles and React's synchronous rendering.

Improvements

  • Enhanced debugging experience in Daily React's hooks by incorporating useDebugValue(). This allows for more insightful values in React DevTools, simplifying the debugging process in Daily React applications.
  • For DailyAudio and DailyAudioTrack, the onPlayFailed() callback now includes detailed error information, featuring the original error's message and name.
  • Improved transcription state management in useTranscription(). State management is now centralized in a parent component, eliminating redundant state management for transcriptions.

Deprecations

  • We are deprecating useActiveParticipant(), useLocalParticipant(), and useParticipant() in favor of useParticipantProperty(). While the use*Participant() hooks were effective for quick access to participant objects, they led to unnecessary render cycles due to subscriptions to all atomic changes for a participant. useParticipantProperty() allows subscribing only to essential participant properties, resulting in more efficient render cycles.
  • The isTranscriptionEnabled property in the useTranscription() hook is being removed, since the enable_transcription configuration property is no longer required.