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
I'm running into issues when trying to use the primitive components with any libraries that attempt to use a ref on the component.
The main example I have right now is trying to use Tamagui's styled function to style <Select.Viewport>, <Select.ScrollUpButton>, and <Select.ScrollDownButton>. Because these components are just regular functions under the hood, Tamagui logs an error about trying to pass ref to them.
Ideally, the entire library should use forwardRef on all components, even if they are no-ops on one platform, solely to ensure that styling libraries and other functions still work properly.
The text was updated successfully, but these errors were encountered:
I've patched the <Select> component in my local codebase to avoid this error, but perhaps a larger PR should consolidate all these cases and just upgrade everything in one shot?
I'm running into issues when trying to use the primitive components with any libraries that attempt to use a
ref
on the component.The main example I have right now is trying to use Tamagui's
styled
function to style<Select.Viewport>
,<Select.ScrollUpButton>
, and<Select.ScrollDownButton>
. Because these components are just regular functions under the hood, Tamagui logs an error about trying to passref
to them.Ideally, the entire library should use
forwardRef
on all components, even if they are no-ops on one platform, solely to ensure that styling libraries and other functions still work properly.The text was updated successfully, but these errors were encountered: