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
Describe the bug
Any mixed cascade callback types have trouble inferencing the type correctly, throwing errors on valid cascadeTo shapes.
<CascadecascadeTo={[['button',(c,o)=>({ ...c.buttonProps, ...o})],[MyCustomComponent,(c,o)=>{}],// ^^^ Type 'FC<any>' is not assignable to type '"button"']}cascadeProps={{buttonProps: {onClick: onClickHandler,},}}><button/><div/><MyCustomComponent/></Cascade>
This only occurs if cascadeTo mixes between using keyof JSX.IntrinsicElement like 'div' or 'span' with React.FCs.
Expected behavior
No error
The text was updated successfully, but these errors were encountered:
Describe the bug
Any mixed cascade callback types have trouble inferencing the type correctly, throwing errors on valid cascadeTo shapes.
This only occurs if cascadeTo mixes between using
keyof JSX.IntrinsicElement
like'div'
or'span'
with React.FCs.Expected behavior
No error
The text was updated successfully, but these errors were encountered: