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
Hi, I have been going through some open issues in react-docgen and some closed issues here about HOC's not having docgenInfo and I could not find solution.
I understand its not trivial, but did someone find a way how to solve this problem?
Basically the moment I will use injectIntl to wrap any component I will lose docgenInfo.
Example:
import * as React from 'react';
import { injectIntl } from 'react-intl';
class Component extends React.Component<Props, void> {
...
}
export default injectIntl(Component);
import Component from './Component';
console.log(Component.__docgenInfo); // is undefined
Hi, I have been going through some open issues in react-docgen and some closed issues here about HOC's not having docgenInfo and I could not find solution.
I understand its not trivial, but did someone find a way how to solve this problem?
Basically the moment I will use injectIntl to wrap any component I will lose docgenInfo.
Example:
I am using
Thanks
The text was updated successfully, but these errors were encountered: