You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In cases where a consumer of VirtualizedMessageList might want to override the components that react-virtuoso allows them to using the components prop, the existing wrapper does allow you to pass in overrides, but, if you pass in any overrides, you end up opting out of the overrides provided by VirtualizedMessageList out of the box like Header, Footer, EmptyPlaceholder, and Item.
Proposed solution
It would be nice if the final value of components that is provided to react-virtuoso would was a combination of additionalVirtuosoProps.components and virtuosoProps (see here).
Something like the example below, though to preserve the memo it might require breaking out the components themselves as individual dependencies.
Ability to set virtuoso components like Scroller through additionalVirtuosoProps without losing Header, Footer, EmptyPlaceholder, and Item components provided by VirtualizedMessageList in the process.
The text was updated successfully, but these errors were encountered:
Motivation
In cases where a consumer of
VirtualizedMessageList
might want to override the components thatreact-virtuoso
allows them to using thecomponents
prop, the existing wrapper does allow you to pass in overrides, but, if you pass in any overrides, you end up opting out of the overrides provided byVirtualizedMessageList
out of the box likeHeader
,Footer
,EmptyPlaceholder
, andItem
.Proposed solution
It would be nice if the final value of
components
that is provided toreact-virtuoso
would was a combination ofadditionalVirtuosoProps.components
andvirtuosoProps
(see here).Something like the example below, though to preserve the memo it might require breaking out the
components
themselves as individual dependencies.Acceptance Criteria
Scroller
throughadditionalVirtuosoProps
without losingHeader
,Footer
,EmptyPlaceholder
, andItem
components provided byVirtualizedMessageList
in the process.The text was updated successfully, but these errors were encountered: