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
Forgive me if I'm wrong on this one, but react-docgen does not appear to support static getters in ES6 classes at the moment. Would be awesome if it did. If Im reading the docs right, this is simply a new resolver and the existing handlers can be reused?
If Im reading the docs right, this is simply a new resolver and the existing handlers can be reused?
Not quite. Resolvers just find component definitions. They don't extract any information. Handlers are functions which get passed the found component definitions and extract the information.
But also here, we tried to make everything transparent so that handlers don't have to care what kind of component definitions they get (class, stateless, etc).
However, looking at the code, this should already work for, for defaultProps at least. displayName needs to be updated to look into functions.
Forgive me if I'm wrong on this one, but react-docgen does not appear to support static getters in ES6 classes at the moment. Would be awesome if it did. If Im reading the docs right, this is simply a new resolver and the existing handlers can be reused?
The text was updated successfully, but these errors were encountered: