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
Whenever a custom component is used as Whisper children, the custom component must support referencing using forwardRef.
While it's clear that the speaker component must do so, it can't be said the same about the children prop.
Hence, I propose we add a few lines specifying that custom components that are used as Whisper children must be of type RsRefForwardingComponent<,> or any other component type that is aware of the ref prop.
The text was updated successfully, but these errors were encountered:
Awesome thanks, I would suggest we add a line at the beginning of the Whisper docs mentioning Whisper children prop having to conform to the mentioned caveat. I am happy to open a Pull Request for it if this sounds reasonable.
Whenever a custom component is used as Whisper children, the custom component must support referencing using forwardRef.
While it's clear that the speaker component must do so, it can't be said the same about the children prop.
Hence, I propose we add a few lines specifying that custom components that are used as Whisper children must be of type RsRefForwardingComponent<,> or any other component type that is aware of the ref prop.
The text was updated successfully, but these errors were encountered: