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
{{ message }}
This repository was archived by the owner on Oct 4, 2023. It is now read-only.
The "Smart/Presentational Components" section of readme says that pipe(withProps({}), Component) is a supported use case.
The implementation of pipe() is concise and elegant. Unfortunately it doesn’t work when the supplied Component was created by e.g. React.forwardRef() and thus is not a function but an object.
Could you add support for such components as well?
The text was updated successfully, but these errors were encountered:
Actually the defaultProps are also lost when used this way.
arty-name
changed the title
Non-function React component as the last parameter of pipe()
Non-function React component as the last parameter of pipe() or renderComponent()
Nov 7, 2019
The "Smart/Presentational Components" section of readme says that
pipe(withProps({}), Component)
is a supported use case.The implementation of
pipe()
is concise and elegant. Unfortunately it doesn’t work when the supplied Component was created by e.g.React.forwardRef()
and thus is not a function but an object.Could you add support for such components as well?
The text was updated successfully, but these errors were encountered: