-
Notifications
You must be signed in to change notification settings - Fork 13
Open
Description
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:
- Return all data from the
useMeetinghook - Accept a projection function as an argument that transforms the returned data
- 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;
gustavotrott
Metadata
Metadata
Assignees
Labels
No labels