Skip to content

feat: new useMeeting subscription #242

Description

@GuiLeme

Describe the feature
We need to create a new custom hook subscription that works similarly to useMeeting, but with enhanced functionality. The hook should return all data that useMeeting provides while also accepting a projection function as an argument to allow consumers to transform the returned data.

Expected behavior
The new hook should:

  1. Return all data from the useMeeting hook
  2. Accept a projection function as an argument that transforms the returned data
  3. Allow developers to efficiently select and transform only the data they need from the meeting context (without unecessary re-renders)

Additional context
This hook would provide a more efficient way to subscribe to meeting data with built-in projection/transformation capabilities, similar to selector patterns used in state management libraries.

Suggested hook names:

  • useMeetingProjection;
  • useProjectedMeeting;
  • useMeetingData;
  • useAllMeetingData;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels
    No fields configured for Feature.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions