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
useMeeting hook
- 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;
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 thatuseMeetingprovides while also accepting a projection function as an argument to allow consumers to transform the returned data.Expected behavior
The new hook should:
useMeetinghookAdditional 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: