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 some cases where a component's props are obscured by higher order components we should to define an override so that ERT can still access the relevant props of the component
My idea is a comment override:
/** @ert-override Props */// 👆 this statement tells ERT which props to access interfaceProps{
bar: string;}constMyComponent: FC<Props> = props =>null;exportdefaultwithBadHOC(withAnotherHOC(MyComponent));// 💥 ERT is unable to grab these props because they're obscured by this HOC
The text was updated successfully, but these errors were encountered:
In some cases where a component's props are obscured by higher order components we should to define an override so that ERT can still access the relevant props of the component
My idea is a comment override:
The text was updated successfully, but these errors were encountered: