Skip to content

0.3.0

Compare
Choose a tag to compare

Features

  • New hook useLocalSessionId: This optimizes render cycles compared to calling useLocalParticipant in order to get the local participant's session_id. We recommend migrating to useLocalSessionId when only the session_id is of interest in a component.
  • New hook useParticipantProperty: This hook allows to subscribe to only a specific property for a specific participant, identified by their session_id. Similar to useLocalSessionId this hook allows to reduce re-render cycles when only a single, or small subset of participant properties are relevant to a component.

Maintenance

  • Removed babel-plugin-transform–regenerator from our Babel config to unsafe-eval issues when using daily-react-hooks in a CSP-configured runtime environment.
  • Bumped peerDependency on daily-js to 0.29.0