Open kellyrmilligan opened 8 years ago
Why not just use hoist-non-react-statics
here?
Ummm..yes. Let me research that and modify the Pr.
https://github.com/reactjs/react-redux/issues/276
Sounds good to me. Let me modify this Pr with that instead.
@taion good idea. if approve would it be possible to publish this as a minor version as well? I see #15 would like this as well.
That's up to @goatslacker 😄
otherwise looks good though? I added a test as well :)
@taion updated. @goatslacker thoughts?
I guess for now I can use same technique on the component returned from connect until this is merged in right? Just would be nice to include it inline with the other statics
@goatslacker @taion should I just close this PR?
@goatslacker @taion status?
this copies static methods on the component class sent to connect to stores. this would be valuable for components that are at the top level, and in an SPA you may want to call fetch for server side rendering from a pre-defined method. this makes no assumptions on what the name of that method should be. you may also just want to call the fetch method before rendering, and being able to specify that in the component is nice.